2
0
mirror of https://github.com/openkmip/pykmip synced 2026-01-01 08:03:32 +00:00

Created test suite for attribute_factory

Resolves CR changes for #208
This commit is contained in:
Jonathan Seawright
2016-12-05 13:14:22 -06:00
parent 9ba479e4d3
commit 7b25780a4e
2 changed files with 45 additions and 12 deletions

View File

@@ -310,18 +310,6 @@ class TestProxyKmipClient(testtools.TestCase):
client.proxy.create.assert_called_with(
enums.ObjectType.SYMMETRIC_KEY, template)
def test_name_eq(self):
"""
Test that two identical name attributes match
"""
attr_type = enums.AttributeType.NAME
attr_name = "foo"
attr_a = self.attribute_factory.create_attribute(attr_type, attr_name)
attr_b = self.attribute_factory.create_attribute(attr_type, attr_name)
self.assertTrue(attr_a == attr_b)
self.assertFalse(attr_a != attr_b)
@mock.patch('kmip.pie.client.KMIPProxy',
mock.MagicMock(spec_set=KMIPProxy))
def test_create_on_invalid_algorithm(self):