#NEWLINE# @ mock . patch . object ( cmdgen , 'UsmUserData' , autospec = True ) #NEWLINE# def test__get_auth_v3( self , mock_user , mock_cmdgen ) : #NEWLINE# #INDENT# client = snmp . SNMPClient ( self . address , self . port , snmp . SNMP_V3 ) #NEWLINE# client . _get_auth ( ) #NEWLINE# mock_cmdgen . assert_called_once_with ( ) #NEWLINE# mock_user . assert_called_once_with ( client . security )