#NEWLINE# @ mock . patch ( 'oppy.connection.connectionmanager.logging' , autospec = True ) #NEWLINE# def test_connectionTaskSucceeded_no_reference( self , mock_logging ) : #NEWLINE# #INDENT# mock_cbt = mock . Mock ( ) #NEWLINE# mock_cbt . micro_status_entry = mock . Mock ( ) #NEWLINE# mock_cbt . micro_status_entry . fingerprint = 'test' #NEWLINE# self . cm . connectionTaskSucceeded ( mock_cbt ) #NEWLINE# self . assertTrue ( ( mock_cbt not in self . cm . _connection_dict ) ) #NEWLINE# self . assertEqual ( mock_logging . debug . call_count , 1 )