

def test_detail(self):
    url = '/v2/fake/servers/detail'
    res = self._make_request(url)
    self.assertEqual(res.status_int, 200)
    for (i, server) in enumerate(self._get_servers(res.body)):
        for (j, group) in enumerate(self._get_groups(server)):
            name = ('fake-%s-%s' % (i, j))
            self.assertEqual(group.get('name'), name)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py TestNeutronSecurityGroupsOutputTest.test_detail/original