summaryrefslogtreecommitdiff
path: root/test/test_poopt.py
blob: 54f466a60d419a95aa3ffc928fc303b32d1b1b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
Test of the poopt module
"""

import pytest
import sys
sys.path.append('poezio')

from poopt import cut_text

def test_cut_text():

    text = '12345678901234567890'
    assert cut_text(text, 5) == [(0, 5), (5, 10), (10, 15), (15, 20)]