#NEWLINE# def test_init( self ) : #NEWLINE# #INDENT# gator = Gator ( 'whatever://' , backend_class = CustomClient ) #NEWLINE# self . assertEqual ( gator . conn_string , 'whatever://' ) #NEWLINE# self . assertEqual ( gator . queue_name , ALL ) #NEWLINE# self . assertEqual ( gator . task_class , Task ) #NEWLINE# self . assertEqual ( gator . backend_class , CustomClient ) #NEWLINE# self . assertTrue ( isinstance ( gator . backend , CustomClient ) ) #NEWLINE# gator = Gator ( 'locmem://' , queue_name = 'hard_things' , task_class = CustomTask ) #NEWLINE# self . assertEqual ( gator . conn_string , 'locmem://' ) #NEWLINE# self . assertEqual ( gator . queue_name , 'hard_things' ) #NEWLINE# self . assertEqual ( gator . task_class , CustomTask ) #NEWLINE# self . assertEqual ( self . backend_class , None ) #NEWLINE# self . assertTrue ( isinstance ( gator . backend , LocmemClient ) )