def testTagCount(self): tag_count = Event.all_for_tag("python").count() tag = Tag.get_by_name("python") self.assertEqual(tag_count, tag.count)