diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-13 01:14:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-13 01:14:43 +0000 |
commit | 61551786a8ce1628dcf73faf7f3ac514c99587af (patch) | |
tree | cda9dd637d634d7985897483bf86dc688c90d0c6 /nova/tests/unit/objects | |
parent | b70476304bb4e338a8787f5d5a6465441c1fb1aa (diff) | |
parent | feddee9b29729bdcb07c0f2cb416ba4b2ae7912c (diff) | |
download | nova-61551786a8ce1628dcf73faf7f3ac514c99587af.tar.gz |
Merge "Use PCIAddressField in oslo.versionedobjects"
Diffstat (limited to 'nova/tests/unit/objects')
-rw-r--r-- | nova/tests/unit/objects/test_fields.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/nova/tests/unit/objects/test_fields.py b/nova/tests/unit/objects/test_fields.py index cb891218e5..d220da32f8 100644 --- a/nova/tests/unit/objects/test_fields.py +++ b/nova/tests/unit/objects/test_fields.py @@ -640,28 +640,6 @@ class TestNotificationAction(TestField): self.assertRaises(ValueError, self.field.stringify, 'magic') -class TestPCIAddress(TestField): - def setUp(self): - super(TestPCIAddress, self).setUp() - self.field = fields.Field(fields.PCIAddressField()) - self.coerce_good_values = [('0000:00:02.0', '0000:00:02.0')] - self.coerce_bad_values = [ - '000:00:02.0', - '0000:0:02.0', - '0000:00:2.0', - '0000:00:02.', - '-000:00:02.0', - '0000:0-:02.0', - '0000:00:-2.0', - '0000:00:02.-', - '000000:02.0', - '0000:0:02.0', - '0000:00:020', - ] - self.to_primitive_values = self.coerce_good_values - self.from_primitive_values = self.coerce_good_values - - class TestUSBAddress(TestField): def setUp(self): super(TestUSBAddress, self).setUp() |