def test_api_parameters(self): args = dict(name='foo', community='public', host='10.10.10.10', network='other', version=1, port=1000) p = NetworkedParameters(args) assert p.name == 'foo' assert p.snmp_version == '1' assert p.community == 'public' assert p.destination == '10.10.10.10' assert p.port == 1000 assert p.network == 'other'
def test_module_networked_parameters(self): args = dict(name='foo', snmp_version='1', community='public', destination='10.10.10.10', port=1000, network='other', password='******', server='localhost', user='******') p = NetworkedParameters(args) assert p.name == 'foo' assert p.snmp_version == '1' assert p.community == 'public' assert p.destination == '10.10.10.10' assert p.port == 1000 assert p.network == 'other'