def METHOD_NAME(self):
    member_ip = 'DEADBEEF'
    rf = RequestFactory()
    fake_request = rf.get('/')
    # NOTE(romcheg): Need to attach _messages property to the fake request
    #                in order to make it compatible with MessageMiddleware.
    fake_request._messages = mock.Mock()
    member_ip_filter = self.get_member_ip_filter(member_ip)
    with self.assertRaises(IncorrectLookupParameters):
        queryset = member_ip_filter.queryset(
            fake_request,
            Network.objects.all()
        )