Files
babi/tests/file_test.py
Anthony Sottile 230e457e79 split up the tests
2019-12-14 13:31:08 -08:00

21 lines
441 B
Python

import babi
def test_position_repr():
ret = repr(babi.File('f.txt'))
assert ret == (
'File(\n'
" filename='f.txt',\n"
' modified=False,\n'
' lines=[],\n'
" nl='\\n',\n"
' file_y=0,\n'
' cursor_y=0,\n'
' x=0,\n'
' x_hint=0,\n'
' sha256=None,\n'
' undo_stack=[],\n'
' redo_stack=[],\n'
')'
)