

def show_security_group_rule(self, security_group_rule, **_params):
    try:
        return {
            'security_group_rule': msg._fake_security_group_rules[security_group_rule],
        }
    except KeyError:
        msg = ('Security Group rule %s not found' % security_group_rule)
        raise n_exc.NeutronClientException(message=msg, status_code=404)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py MockClient.show_security_group_rule/VarMisuse@24/41 `self`->`msg`