def test_date_time_g01(self): """ date_time_g01 """ if "json" == ml_system.CFG_TYPE: shutil.copyfile(os.path.join("unittest", "date_time-g01.json"), os.path.join("running", "date_time.txt")) if "jcfg" == ml_system.CFG_TYPE: shutil.copyfile(os.path.join("unittest", "date_time-g01.jcfg"), os.path.join("running", "date_time.txt")) if "pickle" == ml_system.CFG_TYPE: return self.maxDiff = None e = ml_w_date_time.get(None, threading.RLock()) self.assertEqual(e, (True, { "time_zone": "Taipei", "time_server": "59.124.196.83", "date": "2013/02/04", "time": "13:10:00" }))