From 11fd58b52b26f8ea84d43231983d76b2b0088bca Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 16 Jun 2010 12:55:18 +0200 Subject: [PATCH] merged two tests --- apps/catalogue/tests/tags.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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') -- 2.20.1