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

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

src/j/a/JaikuEngine-HEAD/common/test/api.py   JaikuEngine(Download)
  def test_channel_get(self):
    channel_ref = api.channel_get(self.popular, self.test_channel_nick)
    self.assertEqual('#testchannel@example.com', channel_ref.nick)
 
  def test_channel_create_twice(self):
  def test_channel_create_increment_count(self):
    channel_ref = api.channel_get(self.popular, self.test_channel_nick)
    self.assertEquals(1, channel_ref.extra['member_count'])
    self.assertEquals(1, channel_ref.extra['admin_count'])
    popular_ref = api.actor_get(api.ROOT, self.popular_nick)
  def test_channel_join_increment_count(self):
    hermit_ref = api.actor_get(api.ROOT, self.hermit_nick)
    self.assertEquals(0, hermit_ref.extra.get('channel_count', 0))
    api.channel_join(api.ROOT, self.hermit_nick, self.test_channel_nick)
    channel_ref = api.channel_get(api.ROOT, self.test_channel_nick)
  def test_channel_part_decrement_count(self):
    api.channel_join(api.ROOT, self.hermit_nick, self.test_channel_nick)
    api.channel_part(api.ROOT, self.hermit_nick, self.test_channel_nick)
    channel_ref = api.channel_get(api.ROOT, self.test_channel_nick)
    self.assertEquals(1, channel_ref.extra['member_count'])

src/j/a/jaikuenginepatch-HEAD/common/test/api.py   jaikuenginepatch(Download)
  def test_channel_create_increment_count(self):
    channel_ref = api.channel_get(self.popular, self.test_channel_nick)
    self.assertEquals(1, channel_ref.extra['member_count'])
    self.assertEquals(1, channel_ref.extra['admin_count'])
    popular_ref = api.actor_get(api.ROOT, self.popular_nick)
  def test_channel_join_increment_count(self):
    hermit_ref = api.actor_get(api.ROOT, self.hermit_nick)
    self.assertEquals(0, hermit_ref.extra.get('channel_count', 0))
    api.channel_join(api.ROOT, self.hermit_nick, self.test_channel_nick)
    channel_ref = api.channel_get(api.ROOT, self.test_channel_nick)
  def test_channel_part_decrement_count(self):
    api.channel_join(api.ROOT, self.hermit_nick, self.test_channel_nick)
    api.channel_part(api.ROOT, self.hermit_nick, self.test_channel_nick)
    channel_ref = api.channel_get(api.ROOT, self.test_channel_nick)
    self.assertEquals(1, channel_ref.extra['member_count'])

src/c/o/CollabQ-HEAD/common/test/api.py   CollabQ(Download)
  def test_channel_get(self):
    channel_ref = api.channel_get(self.popular, self.test_channel_nick)
    self.assertEqual('#testchannel@example.com', channel_ref.nick)
 
  def test_channel_create_twice(self):