(self)
| 50 | w.flush() |
| 51 | |
| 52 | def test_close(self): |
| 53 | output = mock.create_autospec(output_lib.Output) |
| 54 | w = writer_lib.Writer(output) |
| 55 | w.close() |
| 56 | output.close.assert_called_once() |
| 57 | |
| 58 | def test_close_after_close(self): |
| 59 | output = mock.create_autospec(output_lib.Output) |