'Test for removing version from href
This test conatins following test-cases:
1) remove major version from href
2-5) remove version from href
6) remove version from href version not trailing domain'

@ddt.data(('http://cinder.example.com/v1/images', 'http://cinder.example.com/images'), ('http://cinder.example.com/v1.1/images', 'http://cinder.example.com/images'), ('http://cinder.example.com/v1.1/', 'http://cinder.example.com/'), ('http://cinder.example.com/v10.10', 'http://cinder.example.com'), ('http://cinder.example.com/v1.1/images/v10.5', 'http://cinder.example.com/images/v10.5'), ('http://cinder.example.com/cinder/v2', 'http://cinder.example.com/cinder'))
@ddt.unpack
def test_remove_version_from_href(self, fixture, expected):

    actual = common.remove_version_from_href(fixture)
    self.assertEqual(expected, actual)
