#NEWLINE# def test_enqueue_second_job_existence_in_job_queue( self ) : #NEWLINE# #INDENT# job_id = self . _get_job_id ( ) #NEWLINE# response = self . queue . enqueue ( payload = self . _test_payload_1 , interval = 10000 , job_id = job_id , queue_id = self . _test_queue_id , queue_type = self . _test_queue_type ) #NEWLINE# job_id = self . _get_job_id ( ) #NEWLINE# response = self . queue . enqueue ( payload = self . _test_payload_2 , interval = 20000 , job_id = job_id , queue_id = self . _test_queue_id , queue_type = self . _test_queue_type ) #NEWLINE# queue_name = ( '%s:%s:%s' % ( self . queue . _key_prefix , self . _test_queue_type , self . _test_queue_id ) ) #NEWLINE# latest_job_id = self . queue . _r . lrange ( queue_name , ( - 1 ) , ( - 1 ) ) #NEWLINE# self . assertEqual ( latest_job_id , [ job_id ] )