#NEWLINE# def test_login_required_logined_successful( self ) : #NEWLINE# #INDENT# index_path = reverse ( 'admin2:dashboard' ) #NEWLINE# self . client . login ( username = self . user . username , password = 'password' ) #NEWLINE# self . assertContains ( self . client . get ( index_path ) , reverse ( 'admin2:blog_post_index' ) )