'Assert GET /versions with the
`Accept: application/vnd.openstack.images-v1` header.
Verify version choices returned.'

def test_get_versions_path_with_openstack_header(self):

    path = ('http://%s:%d/versions' % ('127.0.0.1', self.api_port))
    http = httplib2.Http()
    headers = {'Accept': 'application/vnd.openstack.images-v1'}
    (response, content_json) = http.request(path, 'GET', headers=headers)
    self.assertEqual(http_client.OK, response.status)
    content = jsonutils.loads(content_json.decode())
    self.assertEqual(self.versions, content)
