poezio/test/test_poopt.py

13 lines
210 B
Python
Raw Normal View History

"""
Test of the poopt module
"""
import pytest
2016-08-21 13:39:46 +00:00
from poezio.poopt import cut_text
def test_cut_text():
text = '12345678901234567890'
assert cut_text(text, 5) == [(0, 5), (5, 10), (10, 15), (15, 20)]