def testbmirun_l(self): print 'Run with update(-1)' bmiobj = bmi.wflowbmi_light() bmiobj.initialize('wflow_sceleton/wflow_sceleton.ini',loglevel=logging.DEBUG) et = bmiobj.get_end_time() st = bmiobj.get_start_time() bmiobj.update(et - st) bmiobj.finalize()
def testbmirun_space_in_name(self): print 'Run with update(-1)' bmiobj = bmi.wflowbmi_light() bmiobj.initialize('wflow sceleton/wflow sceleton.ini',loglevel=logging.ERROR) et = bmiobj.get_end_time() st = bmiobj.get_start_time() bmiobj.update(et - st) bmiobj.finalize()
def testbmirun_space_in_name(self): print("Run with update(-1)") bmiobj = bmi.wflowbmi_light() bmiobj.initialize("wflow_sceleton/wflow_sceleton.ini", loglevel=logging.ERROR) et = bmiobj.get_end_time() st = bmiobj.get_start_time() bmiobj.update(et - st) bmiobj.finalize() self.assertEqual(et, bmiobj.get_current_time())
def testbmirun_space_in_name(self): print "Run with update(-1)" bmiobj = bmi.wflowbmi_light() bmiobj.initialize("wflow_sceleton/wflow_sceleton.ini", loglevel=logging.ERROR) et = bmiobj.get_end_time() st = bmiobj.get_start_time() bmiobj.update(et - st) bmiobj.finalize() self.assertEquals(et, bmiobj.get_current_time())
def testbmirun_l(self): print 'Run with update(-1)' bmiobj = bmi.wflowbmi_light() bmiobj.initialize('wflow_sceleton/wflow_sceleton.ini', loglevel=logging.ERROR) print bmiobj.get_current_time() et = bmiobj.get_end_time() st = bmiobj.get_start_time() print bmiobj.get_current_time() bmiobj.update(et - st) print bmiobj.get_current_time() bmiobj.finalize() print bmiobj.get_current_time() print et print st self.assertEquals(et, bmiobj.get_current_time())
def testbmirun_l(self): print("Run with update(-1)") bmiobj = bmi.wflowbmi_light() bmiobj.initialize("wflow_sceleton/wflow_sceleton.ini", loglevel=logging.ERROR) print(bmiobj.get_current_time()) et = bmiobj.get_end_time() st = bmiobj.get_start_time() print(bmiobj.get_current_time()) bmiobj.update(et - st) print(bmiobj.get_current_time()) bmiobj.finalize() print(bmiobj.get_current_time()) print(et) print(st) self.assertEqual(et, bmiobj.get_current_time())