Package bw :: Package poseidon :: Module diskindex :: Class TestDiskIndex
[frames] | no frames]

Class TestDiskIndex

unittest.TestCase --+
                    |
                   TestDiskIndex

Unittest to audit bytes written by OceanIndex and SeaIndex

Nested Classes

Inherited from unittest.TestCase: failureException

Instance Methods
 
generate_oceanitem(self)
 
generate_seaitem(self)
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
 
test_oceanindex(self)
 
do_test_rewrite_oceanindex(self)
 
test_seaindex(self)
 
do_test_read_oceanindex(self)
 
do_test_read_seaindex(self)
 
test_multiple_ocean_writes(self, cnt=random.choice(xrange(10)))
 
test_multiple_sea_writes(self, cnt=random.choice(xrange(10)))

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, shortDescription, tearDown

Class Variables
  last = 0
  ids = [uuid.uuid4().bytes for x in xrange(100)]
Method Details

setUp(self)

 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)