From: Radek Czajka Date: Wed, 16 Jun 2010 10:55:18 +0000 (+0200) Subject: merged two tests X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/11fd58b52b26f8ea84d43231983d76b2b0088bca?ds=sidebyside;hp=-c merged two tests --- 11fd58b52b26f8ea84d43231983d76b2b0088bca diff --git a/apps/catalogue/tests/tags.py b/apps/catalogue/tests/tags.py index 262821460..49e176e09 100644 --- a/apps/catalogue/tests/tags.py +++ b/apps/catalogue/tests/tags.py @@ -171,17 +171,14 @@ class TagRelatedTagsTests(WLTestCase): 'wrong related tag epoch tag on tag page') - def test_siblings_tags_add(self): + def test_siblings_tags_count(self): """ if children have tags and parent hasn't, count the children """ cats = self.client.get('/katalog/epoch/').context['categories'] self.assertTrue(('ChildKind', 2) in [(tag.name, tag.count) for tag in cats['kind']], 'wrong related kind tags on tag page') - def test_themes_add(self): - """ all occurencies of theme should be counted """ - - cats = self.client.get('/katalog/epoch/').context['categories'] + # all occurencies of theme should be counted self.assertTrue(('Theme', 4) in [(tag.name, tag.count) for tag in cats['theme']], 'wrong related theme count')