def test_output_quiet():
 with AssertNotPrints('2'):
  ip.run_cell('1+1;', store_history=True)
 with AssertNotPrints('2'):
  ip.run_cell('1+1; # comment with a semicolon', store_history=True)
 with AssertNotPrints('2'):
  ip.run_cell('1+1;\n#commented_out_function()', store_history=True)

def test_output_quiet ( ) : with AssertNotPrints ( '2' ) : ip . run_cell ( '1+1;' , store_history = True ) with AssertNotPrints ( '2' ) : ip . run_cell ( '1+1; # comment with a semicolon' , store_history = True ) with AssertNotPrints ( '2' ) : ip . run_cell ( '1+1;\n#commented_out_function()' , store_history = True )
checking to make sure that output is quiet .