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()
def setUpClass(cls): ''' Change to smaller ring. ''' cls._default_size = ct.RING_SIZE_BIT ct.RING_SIZE_BIT = 3 ct.init()
def tearDownClass(cls): ''' Restore chord ring default size. ''' ct.RING_SIZE_BIT = cls._default_size ct.init()
def tearDownClass(cls): ''' Restore longer ring. ''' ct.RING_SIZE_BIT = cls._default_size ct.init()