21 lines
441 B
Python
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'
|
|
')'
|
|
)
|