def test_create_without_document_class(self):
        assert self.mongo.db.things.find_one() is None
        # write document and retrieve, to check if type is dict (default)
        if pymongo.version_tuple[0] > 2:
            # Write Concern is set to w=1 by default in pymongo > 3.0
            self.mongo.db.things.insert_one({'_id': 'thing', 'val': 'foo'})
        else:
            self.mongo.db.things.insert({'_id': 'thing', 'val': 'foo'}, w=1)
        assert type(self.mongo.db.things.find_one()) == dict
This uses self.mongo, which uses config without document_class
dataset/ETHPy150Open dcrosta/flask-pymongo/tests/test_config.py/CustomDocumentClassTest.test_create_without_document_class