Skip to content

Commit

Permalink
Newman tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
whit committed Jan 13, 2012
1 parent d28d4b3 commit aa918cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_ella/test_newman/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def create_roles(self):
self.role_all.save(sync_role=True)

def _create_author_and_article(self):
article = Article.objects.create(title=u'Testable rabbit', description=u'Perex', category=self.nested_first_level_two, content=u'Long vehicle')
article = Article.objects.create(title=u'Testable rabbit', slug='testable-rabbit', description=u'Perex', category=self.nested_first_level_two, content=u'Long vehicle')
article.authors.add(self.author)
article.save()
tools.assert_equals(1, Article.objects.count())
Expand Down Expand Up @@ -152,11 +152,11 @@ class TestAdminChangelistQuerySet(UserWithPermissionTestCase):

def test_only_viewable_articles_retrieved(self):
# article1
accessible_article = Article.objects.create(title=u'Testable rabbit', description='Perex', category=self.nested_first_level_two)
accessible_article = Article.objects.create(title=u'Testable rabbit', slug='testable-rabbit', description='Perex', category=self.nested_first_level_two)
accessible_article.authors.add(self.author)
accessible_article.save()

inaccessible_article = Article.objects.create(title='Lost rabbit', description='Perex', category=self.nested_first_level)
inaccessible_article = Article.objects.create(title='Lost rabbit', slug='testable-rabbit', description='Perex', category=self.nested_first_level)
inaccessible_article.authors.add(self.author)
inaccessible_article.save()

Expand Down

0 comments on commit aa918cb

Please sign in to comment.