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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user