#NEWLINE# def test_circuitDestroyed_open( self ) : #NEWLINE# #INDENT# c = mock . Mock ( ) #NEWLINE# c . circuit_id = 10 #NEWLINE# self . cm . _open_circuit_dict [ 10 ] = c #NEWLINE# self . cm . _assignAllPossiblePendingRequests = mock . Mock ( ) #NEWLINE# self . cm . _buildCircuitsForOrphanedPendingRequests = mock . Mock ( ) #NEWLINE# self . cm . _replenishCircuits = mock . Mock ( ) #NEWLINE# self . cm . circuitDestroyed ( c ) #NEWLINE# self . assertTrue ( ( c not in self . cm . _open_circuit_dict . values ( ) ) ) #NEWLINE# self . assertEqual ( self . cm . _assignAllPossiblePendingRequests . call_count , 1 ) #NEWLINE# self . assertEqual ( self . cm . _buildCircuitsForOrphanedPendingRequests . call_count , 1 ) #NEWLINE# self . assertEqual ( self . cm . _replenishCircuits . call_count , 1 )