def test_put_root_discovers_v1(self):
        resp, body = self.client.put('/', '{}')
        body = json.loads(body)
        self.assertEqual(resp.status, 200)
        self.assertEqual(len(body), 1)
        v1 = body[0]
        self.assertEqual(v1['id'], 'v1.0')
        self.assertEqual(v1['status'], 'CURRENT')
        self.assertEqual(v1['link']['target_name'], 'v1')
        self.assertEqual(v1['link']['href'], '%s/v1' % self.client.base_url)
dataset/ETHPy150Open openstack/solum/functionaltests/api/test_versions.py/VersionDiscoveryTestCase.test_put_root_discovers_v1/original