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

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

src/c/o/CollabQ-HEAD/join/views.py   CollabQ(Download)
      actor_ref.access_level = "delete"
 
      api.post(actor_ref, 
               nick=actor_ref.nick, 
               message='Joined %s!' % (util.get_metadata('SITE_NAME')))

src/j/a/JaikuEngine-HEAD/common/test/api.py   JaikuEngine(Download)
 
    # minimal posting
    entry_ref = api.post(public_actor,
                         nick=public_actor.nick,
                         message=test_message)
    def _duplicate_uuid_same_actor():
      api.post(public_actor,
               nick=public_actor.nick,
               message=test_message,
               uuid=entry_ref.uuid)
    self.assertRaises(exception.ApiException, _duplicate_uuid_same_actor)
    def _duplicate_uuid_different_actor():
      api.post(private_actor,
    def _nonowner_nick():
      api.post(public_actor,
               nick=private_actor.nick,
               message=test_message,
               )
    self.assertRaises(exception.ApiException, _nonowner_nick)
 
    # prevent invalid nick
    def _invalid_nick(nick):
      api.post(public_actor,

src/c/o/CollabQ-HEAD/common/test/api.py   CollabQ(Download)
 
    # minimal posting
    entry_ref = api.post(public_actor,
                         nick=public_actor.nick,
                         message=test_message)
    def _duplicate_uuid_same_actor():
      api.post(public_actor,
               nick=public_actor.nick,
               message=test_message,
               uuid=entry_ref.uuid)
    self.assertRaises(exception.ApiException, _duplicate_uuid_same_actor)
    def _duplicate_uuid_different_actor():
      api.post(private_actor,
    def _nonowner_nick():
      api.post(public_actor,
               nick=private_actor.nick,
               message=test_message,
               )
    self.assertRaises(exception.ApiException, _nonowner_nick)
 
    # prevent invalid nick
    def _invalid_nick(nick):
      api.post(public_actor,

src/j/a/jaikuenginepatch-HEAD/common/test/api.py   jaikuenginepatch(Download)
 
    # minimal posting
    entry_ref = api.post(public_actor,
                         nick=public_actor.nick,
                         message=test_message)
    def _duplicate_uuid_same_actor():
      api.post(public_actor,
               nick=public_actor.nick,
               message=test_message,
               uuid=entry_ref.uuid)
    self.assertRaises(exception.ApiException, _duplicate_uuid_same_actor)
    def _duplicate_uuid_different_actor():
      api.post(private_actor,
    def _nonowner_nick():
      api.post(public_actor,
               nick=private_actor.nick,
               message=test_message,
               )
    self.assertRaises(exception.ApiException, _nonowner_nick)
 
    # prevent invalid nick
    def _invalid_nick(nick):
      api.post(public_actor,

src/c/o/CollabQ-HEAD/common/test/queue.py   CollabQ(Download)
 
    try:
      entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
      self.assertEqual(entry_ref.extra['title'], message)
 
      # make sure we can repeat
      two_entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
 
    try:
      entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
      self.assertEqual(entry_ref.extra['title'], message)
 
      # make sure we can repeat
      two_entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)

src/j/a/JaikuEngine-HEAD/common/test/queue.py   JaikuEngine(Download)
 
    try:
      entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
      self.assertEqual(entry_ref.extra['title'], message)
 
      # make sure we can repeat
      two_entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
 
    try:
      entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
      self.assertEqual(entry_ref.extra['title'], message)
 
      # make sure we can repeat
      two_entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)

src/j/a/jaikuenginepatch-HEAD/common/test/queue.py   jaikuenginepatch(Download)
 
    try:
      entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
      self.assertEqual(entry_ref.extra['title'], message)
 
      # make sure we can repeat
      two_entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
 
    try:
      entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)
      self.assertEqual(entry_ref.extra['title'], message)
 
      # make sure we can repeat
      two_entry_ref = api.post(actor_ref, nick=nick, uuid=uuid, message=message)

src/c/o/CollabQ-HEAD/api/tests.py   CollabQ(Download)
  def test_notify_on_post(self):
    api.post(api.ROOT, nick='popular', message='la la la')
    self.exhaust_queue('popular')
 
    # should notify popular and unpopular

src/j/a/JaikuEngine-HEAD/api/tests.py   JaikuEngine(Download)
  def test_notify_on_post(self):
    api.post(api.ROOT, nick='popular', message='la la la')
    self.exhaust_queue('popular')
 
    # should notify popular and unpopular

src/j/a/jaikuenginepatch-HEAD/api/tests.py   jaikuenginepatch(Download)
  def test_notify_on_post(self):
    api.post(api.ROOT, nick='popular', message='la la la')
    self.exhaust_queue('popular')
 
    # should notify popular and unpopular

Previous  1 | 2