poezio/test/test_poopt.py
mathieui 29942d38bb
Add some unit tests using py.test
- we need to have more
2014-10-27 20:01:22 +01:00

14 lines
237 B
Python

"""
Test of the poopt module
"""
import pytest
import sys
sys.path.append('src')
from poopt import cut_text
def test_cut_text():
text = '12345678901234567890'
assert cut_text(text, 5) == [(0, 5), (5, 10), (10, 15), (15, 20)]