def test_doc_subset_single_line(self):
    doc = 'A simple test\n        with multiple\n        lines\n        of text\n        '.splitlines()
    pos = Token(start=0, end=0, start_line=1, start_char=8, end_line=1, end_char=21)
    expected = 'with multiple'
    tst = doc_subset(iter(doc), pos)
    result = '\n'.join(tst)
    assert (expected == result)
def test_doc_subset_single_line(self):
    doc = 'A simple test\n        with multiple\n        lines\n        of text\n        '.splitlines()
    pos = Token(start=0, end=0, start_line=1, start_char=8, end_line=1, end_char=21)
    expected = 'with multiple'
    tst = doc_subset(iter(doc), pos)
    result = '\n'.join(tst)
    assert (expected == result)