diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2012-07-16 06:10:49 +0100 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2012-07-18 09:08:50 +0100 |
| commit | 3bfbbcacb0b07837c39b4da009fca315209a07bb (patch) | |
| tree | 41cfb9ddb26032dd2b77aac502180f7ef0c1ef80 /nova/tests | |
| parent | acb158714c562d3142bf2f3f560dc374daa2df7d (diff) | |
Remove unused get_version_from_href()
This is unused since edf3e39c remove the v1.0 API.
Change-Id: I1f7c6203ffbe0248c7ef9e95a231c05a0113a347
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/api/openstack/test_common.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/nova/tests/api/openstack/test_common.py b/nova/tests/api/openstack/test_common.py index a22f4c05e..250a199e8 100644 --- a/nova/tests/api/openstack/test_common.py +++ b/nova/tests/api/openstack/test_common.py @@ -283,24 +283,6 @@ class MiscFunctionsTest(test.TestCase): expected = 'abc123' self.assertEqual(actual, expected) - def test_get_version_from_href(self): - fixture = 'http://www.testsite.com/v1.1/images' - expected = '1.1' - actual = common.get_version_from_href(fixture) - self.assertEqual(actual, expected) - - def test_get_version_from_href_2(self): - fixture = 'http://www.testsite.com/v1.1' - expected = '1.1' - actual = common.get_version_from_href(fixture) - self.assertEqual(actual, expected) - - def test_get_version_from_href_default(self): - fixture = 'http://www.testsite.com/images' - expected = '2' - actual = common.get_version_from_href(fixture) - self.assertEqual(actual, expected) - def test_raise_http_conflict_for_instance_invalid_state(self): # Correct args exc = exception.InstanceInvalidState(attr='fake_attr', |
