示例#1
0
def test_chained_readable_exhausted():
    reader = ChainedReadable(BytesIO())
    assert reader.readline() == b''
    assert reader.readline() == b''
示例#2
0
def test_chained_readable_exhausted():
    reader = ChainedReadable(BytesIO())
    assert reader.readline() == b''
    assert reader.readline() == b''
示例#3
0
def test_chained_readable_readline():
    reader = ChainedReadable(
        BytesIO(b'a'),
        BytesIO(b'b\nc')
    )
    assert reader.readline(10) == b'ab\n'
示例#4
0
def test_chained_readable_readline():
    reader = ChainedReadable(BytesIO(b'a'), BytesIO(b'b\nc'))
    assert reader.readline(10) == b'ab\n'