

def test_get_security_group_list(self):
    self._create_sg_template().get('security_group')
    req = fakes.HTTPRequest.blank('/v2/fake/os-security-groups')
    list_dict = self.controller.index(req)
    self.assertEqual(len(list_dict['security_groups']), 2)

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