#NEWLINE# def test_buildCircuitsForPendingStreams( self ) : #NEWLINE# #INDENT# mock_pending_stream = mock . Mock ( ) #NEWLINE# mock_request = mock . Mock ( ) #NEWLINE# mock_pending_stream . request = mock_request #NEWLINE# self . cm . _buildCircuit = mock . Mock ( ) #NEWLINE# self . cm . _buildCircuitsForPendingStreams ( [ mock_pending_stream ] ) #NEWLINE# self . assertEqual ( self . cm . _buildCircuit . call_count , 1 )