예제 #1
0
 def test_remove_version_from_href(self, fixture, expected):
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(expected, actual)
예제 #2
0
 def test_remove_version_from_href_4(self):
     fixture = "http://www.testsite.com/v1.1/images/v10.5"
     expected = "http://www.testsite.com/images/v10.5"
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(actual, expected)
예제 #3
0
 def test_remove_version_from_href_3(self):
     fixture = 'http://www.testsite.com/v10.10'
     expected = 'http://www.testsite.com'
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(expected, actual)
예제 #4
0
 def test_remove_version_from_href_4(self):
     fixture = 'http://www.testsite.com/v1.1/images/v10.5'
     expected = 'http://www.testsite.com/images/v10.5'
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(expected, actual)
예제 #5
0
 def test_remove_major_version_from_href(self):
     fixture = 'http://www.testsite.com/v1/images'
     expected = 'http://www.testsite.com/images'
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(expected, actual)
예제 #6
0
 def test_remove_version_from_href_3(self):
     fixture = 'http://www.testsite.com/v10.10'
     expected = 'http://www.testsite.com'
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(actual, expected)
예제 #7
0
 def test_remove_major_version_from_href(self):
     fixture = 'http://www.testsite.com/v1/images'
     expected = 'http://www.testsite.com/images'
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(actual, expected)
예제 #8
0
파일: test_common.py 프로젝트: jcsp/manila
 def test_remove_version_from_href_2(self):
     fixture = 'http://www.testsite.com/v1.1/'
     expected = 'http://www.testsite.com/'
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(actual, expected)
예제 #9
0
 def test_remove_version_from_href(self, fixture, expected):
     actual = common.remove_version_from_href(fixture)
     self.assertEqual(expected, actual)