示例#1
0
def test_streamreader_read():
    reader = future_fstrings.StreamReader(io.BytesIO(b"f'hi {x}'"))
    assert reader.read() == "'hi {}'.format((x))"
示例#2
0
def test_streamreader_does_not_error_on_construction():
    future_fstrings.StreamReader(io.BytesIO(b"f'error{'"))