mirror of
https://github.com/openkmip/pykmip
synced 2026-01-06 18:43:51 +00:00
Update the ProtocolVersion implementation
This change updates the implementation of the ProtocolVersion struct, bringing it inline with the current struct style. All uses of the struct have been updated to reflect these changes, as have the struct unit tests.
This commit is contained in:
@@ -385,7 +385,7 @@ class TestKMIPClient(TestCase):
|
||||
self.assertEqual(protocol_versions, observed, msg)
|
||||
|
||||
def test_build_discover_versions_batch_item_with_input(self):
|
||||
protocol_versions = [ProtocolVersion.create(1, 0)]
|
||||
protocol_versions = [ProtocolVersion(1, 0)]
|
||||
self._test_build_discover_versions_batch_item(protocol_versions)
|
||||
|
||||
def test_build_discover_versions_batch_item_no_input(self):
|
||||
@@ -612,7 +612,7 @@ class TestKMIPClient(TestCase):
|
||||
self.assertEqual(protocol_versions, result.protocol_versions, msg)
|
||||
|
||||
def test_process_discover_versions_batch_item_with_results(self):
|
||||
protocol_versions = [ProtocolVersion.create(1, 0)]
|
||||
protocol_versions = [ProtocolVersion(1, 0)]
|
||||
self._test_process_discover_versions_batch_item(protocol_versions)
|
||||
|
||||
def test_process_discover_versions_batch_item_no_results(self):
|
||||
|
||||
Reference in New Issue
Block a user