cats = self.client.get('/katalog/lektura/tag/').context['categories']
for category in 'author', 'kind', 'genre', 'epoch', 'theme':
- self.assertTrue('tag' in [tag.name for tag in cats[category]],
+ self.assertTrue('tag' in [tag.slug for tag in cats[category]],
'missing related tag for %s' % category)
def test_qualified_url(self):
import os.path
import sys
-ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Add apps and lib directories to PYTHONPATH
sys.path = [