class MongoDbTest(unittest.TestCase): # 準備 def setUp(self): logging.basicConfig(level=logging.INFO) self.cameoDb = CameoMongoDb() # 收尾 def tearDown(self): pass # 測試 取得 client def test_getClient(self): logging.info("MongoDbTest.test_getClient") self.assertIsNotNone(self.cameoDb.getClient())
def setUp(self): logging.basicConfig(level=logging.INFO) self.cameoDb = CameoMongoDb()