def test_read_scale():
    """
Test the standard scaling policies of `read`.

    >>> input = [[0, 2**8]]
    >>> stream = write(input)
    >>> output = read(stream)
    >>> (output == [[0.0, 2**8 / float(2**15)]]).all()
    True

    >>> input = [[0, 2**8]]
    >>> stream = write(input)
    >>> output = read(stream, scale=False)
    >>> (output == input).all()
    True

    >>> input = [[0, 2**8]]
    >>> stream = write(input)
    >>> output = read(stream, scale=True)
    >>> (output == [[0.0, 1.0]]).all()
    True
"""
