#NEWLINE# def test_removeConnection( self ) : #NEWLINE# #INDENT# mock_connection = mock . Mock ( ) #NEWLINE# mock_connection . micro_status_entry = mock . Mock ( ) #NEWLINE# mock_connection . micro_status_entry . fingerprint = 'test' #NEWLINE# self . cm . _connection_dict [ 'test' ] = mock_connection #NEWLINE# self . cm . removeConnection ( mock_connection ) #NEWLINE# self . assertTrue ( ( self not in self . cm . _connection_dict ) ) #NEWLINE# self . assertEqual ( len ( self . cm . _connection_dict ) , 0 )