

def test_security_group_list(self):
    sgs = self.api_q_secgroups.list()
    tenant_id = self.request.user.tenant_id
    self.qclient.list_security_groups(tenant_id=tenant_id).AndReturn({
        'security_groups': copy.deepcopy(sgs),
    })
    self.mox.ReplayAll()
    rets = api.network.security_group_list(self.request)
    self.assertEqual(len(sgs), len(rets))
    for (exp, ret) in itertools.izip(sgs, rets):
        exp._cmp_sg(exp, ret)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNeutronSecurityGroupTests.test_security_group_list/VarMisuse@112/152 `self`->`exp`