#NEWLINE# def assertViewPermission( self , view_class , granted = True ) : #NEWLINE# #INDENT# view = view_class ( ) #NEWLINE# request = self . requests . get ( '/' ) #NEWLINE# result = view . test_permission ( request ) #NEWLINE# if granted : #NEWLINE# #INDENT# self . assertTrue ( result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertFalse ( result )