File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ def test_pagination_is_ten(self):
3535 self .assertEqual (response .status_code , 200 )
3636 self .assertTrue ('is_paginated' in response .context )
3737 self .assertTrue (response .context ['is_paginated' ] is True )
38- self .assertTrue (len (response .context ['author_list' ]) == 10 )
38+ self .assertEqual (len (response .context ['author_list' ]), 10 )
3939
4040 def test_lists_all_authors (self ):
4141 # Get second page and confirm it has (exactly) the remaining 3 items
4242 response = self .client .get (reverse ('authors' )+ '?page=2' )
4343 self .assertEqual (response .status_code , 200 )
4444 self .assertTrue ('is_paginated' in response .context )
4545 self .assertTrue (response .context ['is_paginated' ] is True )
46- self .assertTrue (len (response .context ['author_list' ]) == 3 )
46+ self .assertEqual (len (response .context ['author_list' ]), 3 )
4747
4848
4949import datetime
You can’t perform that action at this time.
0 commit comments