def test_last(self):
        self.assertIsNone(self.manager.filter(TestModel.a == 123).last())
        self.assertIsNotNone(self.manager.filter(TestModel.a == 1).last())

        self.assertIsNone(self.dict_manager.filter(TestModel.a == 123).last())
        self.assertIsNotNone(self.dict_manager.filter(TestModel.a == 1).last())
dataset/ETHPy150Open EliotBerriot/lifter/tests/test_explicit_query_engine.py/TestQueries.test_last/original