#NEWLINE# def test_single_permission_pass( self ) : #NEWLINE# #INDENT# class AView ( PermissionRequiredMixin , EmptyResponseView ) : #NEWLINE# #INDENT# permission_required = 'auth_tests.add_customuser' #NEWLINE# #UNINDENT# request = self . factory . get ( '/rand' ) #NEWLINE# request . user = request . user #NEWLINE# resp = AView . as_view ( ) ( request ) #NEWLINE# self . assertEqual ( resp . status_code , 200 )