def test_file_on_init(): f = open('file') plog = Plog(f) assert plog.get_file() == f assert plog.get_data() == f
def test_add_file(): f = open('file') plog = Plog() plog.set_file(f) assert plog.get_file() == f assert plog.get_data() == f