diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-04-21 12:45:07 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-04-21 12:45:07 +0100 |
commit | 8287192581de78798634c582c093e236a0797d51 (patch) | |
tree | 82b188318aaf54ccefd1eaee9d4beaeb886e2186 | |
parent | 901e8407bdc783a64badd062601bb5dc88ff36da (diff) | |
download | larch-8287192581de78798634c582c093e236a0797d51.tar.gz |
Fix test to create the right file
-rw-r--r-- | larch/journal_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/larch/journal_tests.py b/larch/journal_tests.py index 0aa0f43..eabfb0d 100644 --- a/larch/journal_tests.py +++ b/larch/journal_tests.py @@ -209,8 +209,9 @@ class ReadOnlyJournalTests(unittest.TestCase): self.ro.overwrite_file, 'foo', 'bar') def test_readonly_mode_does_not_check_for_new_file(self): - self.rw.overwrite_file('foo', 'bar') - self.assertFalse(self.ro.exists('foo')) + filename = self.join('foo') + self.rw.overwrite_file(filename, 'bar') + self.assertFalse(self.ro.exists(filename)) def test_readonly_mode_does_not_check_for_modified_file(self): self.rw.overwrite_file('foo', 'first') |