#NEWLINE# def test_disable_safe( ) : #NEWLINE# #INDENT# 'Test for safety.' #NEWLINE# ( original_stderr_id , original_stdout_id ) = ( id ( sys . stderr ) , id ( sys . stdout ) ) #NEWLINE# assert ( not Windows . is_enabled ( ) ) #NEWLINE# assert ( not Windows . disable ( ) ) #NEWLINE# assert ( not Windows . is_enabled ( ) ) #NEWLINE# assert ( not Windows . disable ( ) ) #NEWLINE# assert ( not Windows . is_enabled ( ) ) #NEWLINE# assert ( not Windows . disable ( ) ) #NEWLINE# assert ( original_stderr_id == id ( sys . stderr ) ) #NEWLINE# assert ( original_stdout_id == id ( sys . stdout ) )