

def list_networks(self, **_params):
    shared = _params.get('shared', None)
    if shared:
        return {
            'networks': [],
        }
    else:
        return {
            'networks': [network for network in _params._fake_networks.values()],
        }

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py MockClient.list_networks/VarMisuse@55/67 `self`->`_params`