示例#1
0
 def setUp(self):
     self.table = TestCaseFile().variable_table
示例#2
0
 def test_mtime(self):
     ctrl = TestCaseFileController(
         TestCaseFile(source=self._filepath).populate())
     assert_false(ctrl.has_been_modified_on_disk())
     os.utime(self._filepath, (1, 1))
     assert_true(ctrl.has_been_modified_on_disk())
示例#3
0
 def test_size_change(self):
     os.utime(self._filepath, None)
     ctrl = TestCaseFileController(
         TestCaseFile(source=self._filepath).populate())
     open(self._filepath, 'a').write('#Ninja edit\n')
     assert_true(ctrl.has_been_modified_on_disk())
 def setUp(self):
     self.tcf = TestCaseFile()
     self._orig_curdir = robot.parsing.populators.PROCESS_CURDIR
     robot.parsing.populators.PROCESS_CURDIR = False