2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-23 03:33:32 +00:00

Adding SymmetricKey to the Pie object hierarchy

This change adds SymmetricKey to the Pie object hierarchy along with a
test suite and updates to the other classes and test suites composing
the Pie interface.
This commit is contained in:
Peter Hamilton
2015-07-01 08:38:37 -04:00
parent f22b3f9c60
commit 7a9f190ec4
5 changed files with 461 additions and 3 deletions

View File

@@ -35,6 +35,10 @@ class DummyManagedObject(ManagedObject):
self._object_type = object_type
def validate(self):
super(DummyManagedObject, self).validate()
return
def __repr__(self):
super(DummyManagedObject, self).__repr__()
return ''
@@ -94,6 +98,13 @@ class TestManagedObject(TestCase):
self.assertRaises(AttributeError, set_object_type)
def test_validate(self):
"""
Test that validate can be called on a ManagedObject.
"""
dummy = DummyManagedObject()
dummy.validate()
def test_repr(self):
"""
Test that repr can be applied to a ManagedObject.