

def test__sort_list(self):
    self.cmp.do.remove()
    for data in ({
        'a': 1,
        'b': 3,
        'c': 'data1',
    }, {
        'a': 2,
        'b': 2,
        'c': 'data3',
    }, {
        'a': 3,
        'b': 1,
        'c': 'data2',
    }):
        self.cmp.do.insert(data)
    data.cmp.compare(_SORT([('a', 1), ('b', (- 1))])).find()
    self.cmp.compare(_SORT([('b', 1), ('a', (- 1))])).find()
    self.cmp.compare(_SORT([('b', 1), ('a', (- 1)), ('c', 1)])).find()

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientSortSkipLimitTest.test__sort_list/VarMisuse@96/127 `self`->`data`