Example #1
0
 def setUpClass(cls):
     '''
     Set up chord ring size for this test.
     '''
     cls._default_size = ct.RING_SIZE_BIT
     ct.RING_SIZE_BIT = 160
     ct.init()
Example #2
0
 def setUpClass(cls):
     '''
     Change to smaller ring.
     '''
     cls._default_size = ct.RING_SIZE_BIT
     ct.RING_SIZE_BIT = 3
     ct.init()
Example #3
0
 def tearDownClass(cls):
     '''
     Restore chord ring default size.
     '''
     ct.RING_SIZE_BIT = cls._default_size
     ct.init()
Example #4
0
 def tearDownClass(cls):
     '''
     Restore longer ring.
     '''
     ct.RING_SIZE_BIT = cls._default_size
     ct.init()