Module unittesting :: Class TestSnmp
[hide private]
[frames] | no frames]

Class TestSnmp

source code


Tests Snmp from snmp.py

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
testInit(self)
Tests if correct initialization of Snmp goes OK
source code
 
testBadInit(self)
Tests if Snmp constructor raises appropriate exception when fetched with bogus data
source code
 
testGetTcpStats(self)
Tests if TCP statistics returned match expected
source code
 
testGetUdpStats(self)
Tests if UDP statistics returned match expected
source code
 
testGetIpStats(self)
Tests if IP statistics returned match expected
source code
 
testGetIcmpStats(self)
Tests if ICMP statistics returned match expected
source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, tearDown

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__