

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

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py DatabaseGettingTest.test__getting_database_via_getattr/VarMisuse@41/58 `self`->`db1`