

def test__find_sort_list_empty_order(self):
    self.cmp.do.remove()
    for data in ({
        'a': 1,
    }, {
        'a': 2,
        'b': (- 2),
    }, {
        'a': 3,
        'b': 4,
    }):
        self.cmp.do.insert(data)
    self.cmp.compare.find(sort=[('b', 1)])
    self.cmp.compare.find(sort=[('b', (- 1))])

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientCollectionTest.test__find_sort_list_empty_order/original