summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-25 00:29:57 +0000
committerGerrit Code Review <review@openstack.org>2017-07-25 00:29:57 +0000
commitad21588b20bba71da5d0d6bd88aa2530d656a9da (patch)
tree1c8afdb34b0d0ebd0f156a22443ee5eb40ecfa26 /openstackclient/tests/unit/utils.py
parent770426d66cf058d40863eef8e62da650bf1e0203 (diff)
parent57e5840710c3b2b74d31bfd6a0da739e0fc747ed (diff)
downloadpython-openstackclient-ad21588b20bba71da5d0d6bd88aa2530d656a9da.tar.gz
Merge "Network tag support"
Diffstat (limited to 'openstackclient/tests/unit/utils.py')
-rw-r--r--openstackclient/tests/unit/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/utils.py b/openstackclient/tests/unit/utils.py
index 3c5c8683..8f9cc7b1 100644
--- a/openstackclient/tests/unit/utils.py
+++ b/openstackclient/tests/unit/utils.py
@@ -25,6 +25,12 @@ class ParserException(Exception):
pass
+class CompareBySet(list):
+ """Class to compare value using set."""
+ def __eq__(self, other):
+ return set(self) == set(other)
+
+
class TestCase(testtools.TestCase):
def setUp(self):