@mock_streams('stdout')
def test_puts_with_user_output_off():
 output.user = False
 puts("You aren't reading this.")
 eq_(sys.stdout.getvalue(), '')

@ mock_streams ( 'stdout' ) def test_puts_with_user_output_off ( ) : output . user = False puts ( "You aren't reading this." ) eq_ ( sys . stdout . getvalue ( ) , '' )
puts() shouldnt print input to sys .