diff --git a/designate/tests/test_api/test_v2/test_tsigkeys.py b/designate/tests/test_api/test_v2/test_tsigkeys.py index 65403ab21..ca86dec5d 100644 --- a/designate/tests/test_api/test_v2/test_tsigkeys.py +++ b/designate/tests/test_api/test_v2/test_tsigkeys.py @@ -49,7 +49,7 @@ class ApiV2TsigKeysTest(ApiV2TestCase): self.assertIsNone(response.json['updated_at']) # Check the supplied values returned are what we expect - self.assertDictContainsSubset(fixture, response.json) + self.assertLessEqual(fixture.items(), response.json.items()) def test_create_tsigkey_validation(self): # NOTE: The schemas should be tested separately to the API. So we diff --git a/designate/tests/test_central/test_service.py b/designate/tests/test_central/test_service.py index 7d8df07d0..4c6a7ef1f 100644 --- a/designate/tests/test_central/test_service.py +++ b/designate/tests/test_central/test_service.py @@ -2903,15 +2903,18 @@ class CentralServiceTest(CentralTestCase): # Compare the actual values of attributes and ns_records for k in range(0, len(values['attributes'])): - self.assertDictContainsSubset( - values['attributes'][k], + self.assertLessEqual( + values['attributes'][k].items(), pool['attributes'][k].to_primitive()['designate_object.data'] + .items() ) for k in range(0, len(values['ns_records'])): - self.assertDictContainsSubset( - values['ns_records'][k], - pool['ns_records'][k].to_primitive()['designate_object.data']) + self.assertLessEqual( + values['ns_records'][k].items(), + pool['ns_records'][k].to_primitive()['designate_object.data'] + .items() + ) def test_get_pool(self): # Create a server pool