

def _cmp_sg(self, exp_sg, ret_sg):
    self.assertEqual(exp_sg['id'], ret_sg.id)
    exprule.assertEqual(exp_sg['name'], ret_sg.name)
    exp_rules = exp_sg['security_group_rules']
    self.assertEqual(len(exp_rules), len(ret_sg.rules))
    for (exprule, retrule) in itertools.izip(exp_rules, ret_sg.rules):
        self._cmp_sg_rule(exprule, retrule)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/test/api_tests/network_tests.py NetworkApiNeutronSecurityGroupTests._cmp_sg/VarMisuse@28/42 `self`->`exprule`