summaryrefslogtreecommitdiff
path: root/saharaclient/tests/unit/base.py
diff options
context:
space:
mode:
authorIwona Kotlarska <iwona260909@gmail.com>2017-07-19 15:47:13 +0200
committerIwona Kotlarska <iwona260909@gmail.com>2017-08-14 10:32:55 +0200
commitcd8f35afd7c289a62de498a7a56d9ccec707462b (patch)
tree060f57e6c10d5ceed9502265e1f0f1c9d8b8ed71 /saharaclient/tests/unit/base.py
parent586a306358c555a042bcb5cfc76715756f370f87 (diff)
downloadpython-saharaclient-cd8f35afd7c289a62de498a7a56d9ccec707462b.tar.gz
Add export of node group templates
Partially-Implements: bp portable-node-group-and-cluster-templates Depends-On: I7a2ef7e5cff70e6034c1222252fbf7c5c35a7e1c This change adds functions to saharaclient to enable export of ngt to JSON. Change-Id: I33c3b6daa5b9e2be218a84efdb6113a4ce9a86df
Diffstat (limited to 'saharaclient/tests/unit/base.py')
-rw-r--r--saharaclient/tests/unit/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/saharaclient/tests/unit/base.py b/saharaclient/tests/unit/base.py
index c2cd255..6d95f6a 100644
--- a/saharaclient/tests/unit/base.py
+++ b/saharaclient/tests/unit/base.py
@@ -35,6 +35,11 @@ class BaseTestCase(testtools.TestCase):
for key, value in body.items():
self.assertEqual(value, getattr(obj, key))
+ def assertDictsEqual(self, dict1, dict2):
+ self.assertEqual(len(dict1), len(dict2))
+ for key in dict1:
+ self.assertEqual(dict1[key], dict2[key])
+
class TestResource(base.Resource):
resource_name = 'Test Resource'