()
| 61 | |
| 62 | |
| 63 | def test_temp_pyfile(): |
| 64 | src = 'pass\n' |
| 65 | fname = tt.temp_pyfile(src) |
| 66 | assert os.path.isfile(fname) |
| 67 | with open(fname) as fh2: |
| 68 | src2 = fh2.read() |
| 69 | nt.assert_equal(src2, src) |
| 70 | |
| 71 | class TestAssertPrints(unittest.TestCase): |
| 72 | def test_passing(self): |