def test_get_index(self):
    actual_response = self.app.get('/')
    req_json_file = './conductor/tests/unit/api/controller/versions.json'
    expected_response = json.loads(open(req_json_file).read())
    versions = expected_response.get('versions')
    for version_obj in versions:
        version_obj['version'] = 'of-has:{}'.format(version.version_info.version_string())
    self.assertEqual(200, actual_response.status_int)
    self.assertJsonEqual(expected_response, json.loads(actual_response.body.decode()))
def test_get_index(self):
    actual_response = self.app.get('/')
    req_json_file = './conductor/tests/unit/api/controller/versions.json'
    expected_response = json.loads(open(req_json_file).read())
    versions = expected_response.get('versions')
    for version_obj in versions:
        version_obj['version'] = 'of-has:{}'.format(version.version_info.version_string())
    self.assertEqual(200, actual_response.status_int)
    self.assertJsonEqual(expected_response, json.loads(actual_response.body.decode()))