

def test__database_names(self):
    self.client.unit.tests.insert({
        'foo': 'bar',
    })
    self.client.foo.bar.insert({
        'unit': 'test',
    })
    names = self.client.database_names()
    self.assertIsInstance(names, list)
    self.assertEqual(sorted(['foo', 'unit']), sorted(names))

dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py DatabasesNamesTest.test__database_names/original