#NEWLINE# @ mock . patch ( 'oppy.circuit.circuitmanager.logging' , autospec = True ) #NEWLINE# def test_circuitDestroyed_no_reference( self , mock_logging ) : #NEWLINE# #INDENT# c = mock . Mock ( ) #NEWLINE# c . circuit_id = 10 #NEWLINE# self . cm . _assignAllPossiblePendingRequests = mock . Mock ( ) #NEWLINE# self . cm . _buildCircuitsForOrphanedPendingRequests = mock . Mock ( ) #NEWLINE# self . cm . _replenishCircuits = mock . Mock ( ) #NEWLINE# self . cm . circuitDestroyed ( self ) #NEWLINE# self . assertTrue ( mock_logging . debug . called ) #NEWLINE# self . assertFalse ( self . cm . _assignAllPossiblePendingRequests . called ) #NEWLINE# self . assertFalse ( self . cm . _buildCircuitsForOrphanedPendingRequests . called ) #NEWLINE# self . assertFalse ( self . cm . _replenishCircuits . called )