Example #1
0
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())
Example #2
0
 def setUp(self):
     logging.basicConfig(level=logging.INFO)
     self.cameoDb = CameoMongoDb()