def testTimeCheck(self): """Deferred read warns if file has been modified...........""" if stat_available: ds = read_file(self.testfile_name, defer_size=2000) from time import sleep sleep(1) open(self.testfile_name, "r+").write('\0') # "touch" the file warning_start = "Deferred read warning -- file modification time " def read_value(): data_elem = ds.PixelData assertWarns(self, warning_start, read_value)
def testTimeCheck(self): """Deferred read warns if file has been modified...........""" if stat_available: ds = read_file(self.testfile_name, defer_size=2000) from time import sleep sleep(1) open(self.testfile_name, "r+").write('\0') # "touch" the file warning_start = "Deferred read warning -- file modification time " def read_value(): data_elem = ds.PixelData assertWarns(self, warning_start, read_value)