#NEWLINE# def test_list_with_awards( self ) : #NEWLINE# #INDENT# b = BadgeFactory ( ) #NEWLINE# a1 = AwardFactory ( description = 'A1 AWARD' , badge = b ) #NEWLINE# a2 = AwardFactory ( description = 'A2 AWARD' , badge = a1 ) #NEWLINE# a3 = AwardFactory ( description = 'A3 AWARD' , badge = b ) #NEWLINE# resp = self . client . get ( reverse ( 'badger.awards_list' ) , follow = True ) #NEWLINE# eq_ ( 200 , resp . status_code ) #NEWLINE# self . assertContains ( resp , a1 . user . username ) #NEWLINE# self . assertContains ( resp , a1 . get_absolute_url ( ) ) #NEWLINE# self . assertContains ( resp , a2 . user . username ) #NEWLINE# self . assertContains ( resp , a2 . get_absolute_url ( ) ) #NEWLINE# self . assertContains ( resp , a3 . user . username ) #NEWLINE# self . assertContains ( resp , a3 . get_absolute_url ( ) )