Mercurial > hg > AtomicWrite
annotate tests/test_atomicwrite.py @ 0:dc90512b9c98
boilerplate
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 02 Jan 2015 13:08:39 -0800 |
parents | |
children | a4188f41ca35 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 | |
3 """ | |
4 unit tests for AtomicWrite | |
5 """ | |
6 | |
7 import os | |
8 import sys | |
9 import tempfile | |
10 import unittest | |
11 | |
12 class AtomicWriteUnitTest(unittest.TestCase): | |
13 | |
14 def test_atomicwrite(self): | |
15 tf = tempfile.mktemp() | |
16 self.assertFalse(os.path.exists(tf)) | |
17 | |
18 if __name__ == '__main__': | |
19 unittest.main() | |
20 |