def test_doc_subset_multilines(self):
    doc = '0123456789\n0123456789\n'.splitlines()
    pos = Token(start=0, end=0, start_line=0, start_char=0, end_line=0, end_char=10)
    expected = '0123456789'
    tst = doc_subset(iter(doc), pos)
    result = ''.join(tst)
    assert (expected == result)
def test_doc_subset_multilines(self):
    doc = '0123456789\n0123456789\n'.splitlines()
    pos = Token(start=0, end=0, start_line=0, start_char=0, end_line=0, end_char=10)
    expected = '0123456789'
    tst = doc_subset(iter(doc), pos)
    result = .join(tst)
    assert (expected == result)