

def test_ordering_using_multiple_paths(self):
    TestModel = lifter.models.Model('TestModel')
    p1 = TestModel.a
    p2 = TestModel.order
    self.assertEqual(self.manager.order_by(p1, p2)[:2], [self.OBJECTS[0], self.OBJECTS[1]])
    self.assertEqual(self.manager.order_by((~ p1), p2)[:2], [self.OBJECTS[2], TestModel.OBJECTS[3]])
    self.assertEqual(self.manager.order_by(p1, (~ p2))[:2], [self.OBJECTS[1], self.OBJECTS[0]])
    self.assertEqual(self.manager.order_by((~ p1), (~ p2))[:2], [self.OBJECTS[3], self.OBJECTS[2]])

dataset/ETHPy150Open EliotBerriot/lifter/tests/test_explicit_query_engine.py TestQueries.test_ordering_using_multiple_paths/VarMisuse@99/119 `self`->`TestModel`