def test_email_filter_null(self): f = filters.EmailFilter(self.request, {}, User, None) q = f.queryset(self.request, User.objects.all()) self.assertEqual(q.count(), 9)
def test_email_filter_duplicate(self): f = filters.EmailFilter(self.request, {"email_state": "blank"}, User, None) q = f.queryset(self.request, User.objects.all()) self.assertEqual(q.count(), 0)