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