#NEWLINE# def test_shutdown( self ) : #NEWLINE# #INDENT# mock_cm = mock . Mock ( ) #NEWLINE# mock_cm . destroyAllCircuits = mock . Mock ( ) #NEWLINE# tools . shutdown ( mock_cm ) #NEWLINE# self . assertEqual ( mock_cm . destroyAllCircuits . call_count , 1 )