def test_write(): b = Buffer() b.file("tests/out.txt") b.write() assert os.path.exists("tests/out.txt")
def test_file(): b = Buffer() base_file = "tests/test_buffer.py" b.file(base_file) assert b.file_name == base_file