#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# cwd = os . path . dirname ( os . path . realpath ( __file__ ) ) #NEWLINE# config_path = os . path . join ( self , 'sharq.test.conf' ) #NEWLINE# self . queue = SharQ ( config_path ) #NEWLINE# self . queue . _r . flushdb ( ) #NEWLINE# self . _test_queue_id = 'johndoe' #NEWLINE# self . _test_queue_type = 'sms' #NEWLINE# self . _test_payload_1 = { #NEWLINE# #INDENT# 'to' : '1000000000' , #NEWLINE# 'message' : 'Hello, world' , #NEWLINE# #UNINDENT# } #NEWLINE# self . _test_payload_2 = { #NEWLINE# #INDENT# 'to' : '1000000001' , #NEWLINE# 'message' : 'Hello, SharQ' , #NEWLINE# #UNINDENT# } #NEWLINE# self . _test_requeue_limit_5 = 5 #NEWLINE# self . _test_requeue_limit_neg_1 = ( - 1 ) #NEWLINE# self . _test_requeue_limit_0 = 0