def test_vanilla_filters(self): qs = VanillaAuthor.objects.filter(name__startswith="John") with Handler(qs) as handler: first = handler.read()[0] assert first == self.grisham
def handler(self): return Handler(self)
def test_vanilla_works(self): handler = Handler(VanillaAuthor.objects.all()) with handler: first = handler.read()[0] assert first == self.jk
def test_vanilla_works(self): handler = Handler(VanillaAuthor.objects.all()) with handler: first = handler.read()[0] self.assertEqual(first, self.jk)