def METHOD_NAME(self):
    d = {"host": "localhost", "port": 27017, "database": "atomate_unittest"}
    self.assertTrue(isinstance(get_database(settings=d), Database))
    db = get_database(os.path.join(MODULE_DIR, "db.json"))
    self.assertTrue(isinstance(db, Database))
    self.assertEqual(db.name, "atomate_unittest")
    db.client.start_session()  # needed to start the connection and populate db.client.address
    self.assertEqual(db.client.address, ("localhost", 27017))