

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

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py MongoClientSortSkipLimitTest.test__sort_name_nested_list/original