

def test__getting_database_via_getitem(self):
    db1 = self.client['some_database_here']
    db2 = self.client['some_database_here']
    self.assertIs(db1, db2)
    self.assertIs(db1, self.client.some_database_here)
    self.assertIsInstance(db1, Database)

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py DatabaseGettingTest.test__getting_database_via_getitem/original