Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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())
Ejemplo n.º 4
0
 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())
Ejemplo n.º 5
0
 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())
Ejemplo n.º 6
0
 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())