async def test_get2(self): """test of mocked method get""" database = DatabaseMongo({}) database.database = {} database.database['test'] = DatabaseMongoTest({}) try: await database.get("test") except TypeError: pass else: raise Exception
async def test_put(self): """test of mocked put""" database = DatabaseMongo({}) database.database = {} database.database['test'] = DatabaseMongoTest({}) try: await database.put("test", {"_id": "0", "key": "value"}) except TypeError: try: await database.put("test", {}) except NotImplementedError: raise Exception else: pass else: raise Exception
async def test_put(self): """test of mocked put""" database = DatabaseMongo({}) database.database = {} database.database['test'] = DatabaseMongoTest({}) try: await database.put("test", {"_id":"0" , "key":"value"}) except TypeError: try: await database.put("test", {}) except NotImplementedError: raise Exception else: pass else: raise Exception