

def test_get_network_info_return_none_on_not_found(self):
    self.plugin.get_network.side_effect = n_exc.NetworkNotFound(net_id='a')
    retval = self.callbacks.get_network_info(mock.Mock(), network_id='a')
    self.assertIsNone(retval)

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py TestDhcpRpcCallback.test_get_network_info_return_none_on_not_found/original