changeset 29393 | 50269a4dce61 |
parent 29392 | f21286e48bc6 |
child 29394 | 6d96658a22b0 |
--- a/tests/test-atomictempfile.py Thu Jun 23 18:18:33 2016 +0100 +++ b/tests/test-atomictempfile.py Thu Jun 23 18:20:58 2016 +0100 @@ -89,6 +89,13 @@ # on other faster platforms can detect problems pass + def testread(self): + with open(self._filename, 'wb') as f: + f.write(b'foobar\n') + file = atomictempfile(self._filename, mode='rb') + self.assertTrue(file.read(), b'foobar\n') + file.discard() + if __name__ == '__main__': import silenttestrunner silenttestrunner.main(__name__)