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

Class TestNetProcess

source code


Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
testCleanInit(self)
Test that a NetProcess class initializes without any exceptions
source code
 
testBadInit(self)
Init raises exception when fetched with bogus data
source code
 
testParseAddress(self)
Another badness suitable only for testing code
source code
 
testCheckKey(self)
Tests if an attempt to retreive correct key works OK and an attempt to retreive b0rked raises exc.
source code
 
testGetItem(self) source code
 
testSetItem(self) source code
 
testComparison(self)
Create two records from the same data, see of they are equal, then compare with a different one, see the exception
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__

Class Variables [hide private]
  tcp = '7: 0200A8C0:9F90 1809BCCD:1446 01 00000000:00000000 00:...
  udp = '33: 00000000:0FA1 00000000:0000 07 00000000:00000000 00...
Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

tcp

Value:
'7: 0200A8C0:9F90 1809BCCD:1446 01 00000000:00000000 00:00000000 00000\
000   500        0 126442 1 d5cc4a80 326 40 14 2 100'

udp

Value:
'33: 00000000:0FA1 00000000:0000 07 00000000:00000000 00:00000000 0000\
0000     0        0 8841 2 dc71f2c0'