diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-07-03 02:48:47 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-07-03 02:48:47 +0000 |
| commit | ee64c2fa6b9eb6f8d628e8899df39a4ee01c2bb3 (patch) | |
| tree | 57e047252b843c67eef60fa4a1a8358dbac9f173 /openstackclient/tests/common/test_utils.py | |
| parent | d80deaba41d09534a3f5a670957b4b0d035509b6 (diff) | |
| parent | 5521e4c504c6a3a06f17a9e4f80444743aa293c7 (diff) | |
| download | python-openstackclient-ee64c2fa6b9eb6f8d628e8899df39a4ee01c2bb3.tar.gz | |
Merge "Add --os-endpoint-type cli optional argument"
Diffstat (limited to 'openstackclient/tests/common/test_utils.py')
| -rw-r--r-- | openstackclient/tests/common/test_utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/tests/common/test_utils.py b/openstackclient/tests/common/test_utils.py index d9f5b7a5..a25a5ba5 100644 --- a/openstackclient/tests/common/test_utils.py +++ b/openstackclient/tests/common/test_utils.py @@ -159,6 +159,16 @@ class TestUtils(test_utils.TestCase): self.assertFalse(utils.wait_for_delete(manager, res_id)) self.assertFalse(mock_sleep.called) + def test_build_kwargs_dict_value_set(self): + self.assertEqual({'arg_bla': 'bla'}, + utils.build_kwargs_dict('arg_bla', 'bla')) + + def test_build_kwargs_dict_value_None(self): + self.assertEqual({}, utils.build_kwargs_dict('arg_bla', None)) + + def test_build_kwargs_dict_value_empty_str(self): + self.assertEqual({}, utils.build_kwargs_dict('arg_bla', '')) + class NoUniqueMatch(Exception): pass |
