Esempio n. 1
0
    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
Esempio n. 2
0
 def handler(self):
     return Handler(self)
Esempio n. 3
0
    def test_vanilla_works(self):
        handler = Handler(VanillaAuthor.objects.all())
        with handler:
            first = handler.read()[0]

        assert first == self.jk
Esempio n. 4
0
    def test_vanilla_works(self):
        handler = Handler(VanillaAuthor.objects.all())
        with handler:
            first = handler.read()[0]

        self.assertEqual(first, self.jk)