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/j/a/JaikuEngine-HEAD/common/test/api.py   JaikuEngine(Download)
  def test_entry_mark_as_spam_single_user(self):
    abuse_ref = api.entry_mark_as_spam(self.unpopular_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.entry, self.entry_ref.keyname())
    self.assertEqual(abuse_ref.actor, self.popular_nick)
    self.assertEqual(abuse_ref.reports, [self.unpopular_nick])
    self.assertEqual(abuse_ref.count, 1)
 
  def test_entry_mark_as_spam_single_user_multiple_times(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
  def test_entry_mark_as_spam_single_user_multiple_times(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
    abuse_ref = api.entry_mark_as_spam(self.unpopular_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.entry, self.entry_ref.keyname())
  def test_entry_mark_as_spam_multiple_users(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
    abuse_ref = api.entry_mark_as_spam(self.celebrity_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.count, 2)

src/c/o/CollabQ-HEAD/common/test/api.py   CollabQ(Download)
  def test_entry_mark_as_spam_single_user(self):
    abuse_ref = api.entry_mark_as_spam(self.unpopular_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.entry, self.entry_ref.keyname())
    self.assertEqual(abuse_ref.actor, self.popular_nick)
    self.assertEqual(abuse_ref.reports, [self.unpopular_nick])
    self.assertEqual(abuse_ref.count, 1)
 
  def test_entry_mark_as_spam_single_user_multiple_times(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
  def test_entry_mark_as_spam_single_user_multiple_times(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
    abuse_ref = api.entry_mark_as_spam(self.unpopular_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.entry, self.entry_ref.keyname())
  def test_entry_mark_as_spam_multiple_users(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
    abuse_ref = api.entry_mark_as_spam(self.celebrity_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.count, 2)

src/j/a/jaikuenginepatch-HEAD/common/test/api.py   jaikuenginepatch(Download)
  def test_entry_mark_as_spam_single_user(self):
    abuse_ref = api.entry_mark_as_spam(self.unpopular_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.entry, self.entry_ref.keyname())
    self.assertEqual(abuse_ref.actor, self.popular_nick)
    self.assertEqual(abuse_ref.reports, [self.unpopular_nick])
    self.assertEqual(abuse_ref.count, 1)
 
  def test_entry_mark_as_spam_single_user_multiple_times(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
  def test_entry_mark_as_spam_single_user_multiple_times(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
    abuse_ref = api.entry_mark_as_spam(self.unpopular_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.entry, self.entry_ref.keyname())
  def test_entry_mark_as_spam_multiple_users(self):
    api.entry_mark_as_spam(self.unpopular_ref, self.entry_ref.keyname())
    abuse_ref = api.entry_mark_as_spam(self.celebrity_ref,
                                       self.entry_ref.keyname())
    self.assertEqual(abuse_ref.count, 2)