#NEWLINE# def test_has_permission( self ) : #NEWLINE# #INDENT# request = RequestFactory ( ) . get ( '/' ) #NEWLINE# assert AnyOf ( AllowNone , AllowAny ) ( ) . has_permission ( request , myview ) #NEWLINE# assert AnyOf ( AllowAny , AllowNone ) ( ) . has_permission ( request , myview )