def setUp(self): self.table = TestCaseFile().variable_table
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())
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