#NEWLINE# def test_circuitOpened( self ) : #NEWLINE# #INDENT# c = mock . Mock ( ) #NEWLINE# c . circuit_id = 10 #NEWLINE# self . cm . _assignPossiblePendingRequestsToCircuit = mock . Mock ( ) #NEWLINE# self . cm . _notifyUserCircuitOpened = mock . Mock ( ) #NEWLINE# self . cm . _circuit_build_task_dict [ 10 ] = c #NEWLINE# self . cm . circuitOpened ( self ) #NEWLINE# self . assertTrue ( ( c not in self . cm . _circuit_build_task_dict . values ( ) ) ) #NEWLINE# self . assertTrue ( ( c in self . cm . _open_circuit_dict . values ( ) ) ) #NEWLINE# self . assertEqual ( self . cm . _assignPossiblePendingRequestsToCircuit . call_count , 1 ) #NEWLINE# self . assertEqual ( self . cm . _notifyUserCircuitOpened . call_count , 1 )