def test_doesnt_save_pickle_file_if_module_save_error_is_raised(self): mtime = get_last_modification_time(self.project._get_pickle_path()) assert_raises(ModuleSaveError, self.add_and_save) assert_equal(mtime, get_last_modification_time(self.project._get_pickle_path()))
def is_out_of_sync(self): """Is the object out of sync with its file. """ return get_last_modification_time(self.get_path()) > self.created