#NEWLINE# @ mock . patch . object ( cmdgen , 'CommunityData' , autospec = True ) #NEWLINE# def test__get_auth_v1( self , mock_community , mock_cmdgen ) : #NEWLINE# #INDENT# client = snmp . SNMPClient ( self . address , self . port , snmp . SNMP_V1 ) #NEWLINE# client . _get_auth ( ) #NEWLINE# mock_cmdgen . assert_called_once_with ( ) #NEWLINE# mock_community . assert_called_once_with ( client . community , mpModel = 0 )