Forwardport 0.8.9

This commit is contained in:
Iacopo Spalletti 2016-10-29 17:42:47 +02:00
commit 62885e6bf2
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
5 changed files with 10 additions and 2 deletions

View file

@ -548,6 +548,10 @@ class ModelsTest(BaseTest):
self.assertEqual(new_category.count_all_sites, 1)
self.assertEqual(self.category_1.count_all_sites, 2)
def test_slug(self):
post = Post.objects.language('en').create(title='I am a title')
self.assertEqual(post.slug, 'i-am-a-title')
def test_model_attributes(self):
self.get_pages()