'Basic test that no query is performed if no Ports are passed'

def test__get_subnets_by_network_no_query(self):

    context = mock.Mock()
    with mock.patch.object(directory, 'get_plugin') as get_p:
        self.db._get_subnets_by_network_list(context, [])
    self.assertFalse(context.session.query.called)
    self.assertFalse(get_p.called)
