def METHOD_NAME(self):
    mock_stream = mock.Mock(spec=sys.stdin)
    mock_stream.isatty.return_value = True
    mock_stream.read.return_value = 'foobar'
    reader = utils.PipeReader(mock_stream)
    value = reader.read()
    assert value is None