diff options
| author | Pavel Kholkin <pkholkin@mirantis.com> | 2015-02-24 19:20:50 +0300 |
|---|---|---|
| committer | Pavel Kholkin <pkholkin@mirantis.com> | 2015-02-24 19:29:23 +0300 |
| commit | f2a581ee286832204b8eed938384e0430a62c4ab (patch) | |
| tree | 7fd82ee185e87cf7c994874430f6f07c94cd2dc4 /novaclient/tests/unit/test_utils.py | |
| parent | be41ae238d05a2c3ade3822d869d2d199444c52a (diff) | |
| download | python-novaclient-f2a581ee286832204b8eed938384e0430a62c4ab.tar.gz | |
Fixed redeclared test_names
Fixed redeclared test_names for two test functions that pass now:
1) 'test_list_security_groups_all_tenants_on'
2) 'test_find_by_str_name'
Small spelling corrections
TrivialFix
Change-Id: Iacb0ce5697779f9342c22a22cb2f29a8e063b459
Diffstat (limited to 'novaclient/tests/unit/test_utils.py')
| -rw-r--r-- | novaclient/tests/unit/test_utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/novaclient/tests/unit/test_utils.py b/novaclient/tests/unit/test_utils.py index 51b824f2..2e72ef65 100644 --- a/novaclient/tests/unit/test_utils.py +++ b/novaclient/tests/unit/test_utils.py @@ -126,7 +126,7 @@ class FindResourceTestCase(test_utils.TestCase): output = utils.find_resource(self.manager, 'UPPER') self.assertEqual(output, self.manager.get('12345')) - def test_find_by_str_name(self): + def test_find_by_str_lower_name(self): output = utils.find_resource(self.manager, 'lower') self.assertEqual(output, self.manager.get('123456')) @@ -134,16 +134,16 @@ class FindResourceTestCase(test_utils.TestCase): output = utils.find_resource(self.manager, 'Mixed') self.assertEqual(output, self.manager.get('1234567')) - def test_find_by_str_lower_name(self): + def test_find_by_str_lower_name_mixed(self): output = utils.find_resource(self.manager, 'mixed') self.assertEqual(output, self.manager.get('12345678')) - def test_find_by_str_displayname(self): + def test_find_by_str_display_name(self): display_manager = FakeDisplayManager(None) output = utils.find_resource(display_manager, 'entity_three') self.assertEqual(output, display_manager.get('4242')) - def test_find_in_alphanum_allowd_manager_by_str_id_(self): + def test_find_in_alphanum_allowed_manager_by_str_id_(self): alphanum_manager = FakeManager(True) output = utils.find_resource(alphanum_manager, '01234') self.assertEqual(output, alphanum_manager.get('01234')) |
