Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/c/o/CollabQ-HEAD/common/test/queue.py   CollabQ(Download)
    # grabbin
    l = profile.label('api_task_get (unlocked)')
    task_ref = api.task_get(actor_ref, nick, action, uuid)
    l.stop()
 
    # grab again, LOCK VILLE
    def _again():
      task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    # grab again, EXPIRED
    task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    # locked if we try again
 
    # grab again, FRESH AND CLEAN
    task_ref = api.task_get(actor_ref, nick, action, uuid)
    self.assertEqual(task_ref.progress, '1')
 
    def _not_found():
      task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    self.assertRaises(exception.ApiNotFound, _not_found)
 

src/j/a/JaikuEngine-HEAD/common/test/queue.py   JaikuEngine(Download)
    # grabbin
    l = profile.label('api_task_get (unlocked)')
    task_ref = api.task_get(actor_ref, nick, action, uuid)
    l.stop()
 
    # grab again, LOCK VILLE
    def _again():
      task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    # grab again, EXPIRED
    task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    # locked if we try again
 
    # grab again, FRESH AND CLEAN
    task_ref = api.task_get(actor_ref, nick, action, uuid)
    self.assertEqual(task_ref.progress, '1')
 
    def _not_found():
      task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    self.assertRaises(exception.ApiNotFound, _not_found)
 

src/j/a/jaikuenginepatch-HEAD/common/test/queue.py   jaikuenginepatch(Download)
    # grabbin
    l = profile.label('api_task_get (unlocked)')
    task_ref = api.task_get(actor_ref, nick, action, uuid)
    l.stop()
 
    # grab again, LOCK VILLE
    def _again():
      task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    # grab again, EXPIRED
    task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    # locked if we try again
 
    # grab again, FRESH AND CLEAN
    task_ref = api.task_get(actor_ref, nick, action, uuid)
    self.assertEqual(task_ref.progress, '1')
 
    def _not_found():
      task_ref = api.task_get(actor_ref, nick, action, uuid)
 
    self.assertRaises(exception.ApiNotFound, _not_found)