def test_first(self):
        self.assertIsNone(self.manager.filter(TestModel.a == 123).first())
        self.assertIsNotNone(self.manager.filter(TestModel.a == 1).first())

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