#NEWLINE# def test_has_object_permission_fail( self ) : #NEWLINE# #INDENT# request = RequestFactory ( ) . get ( '/' ) #NEWLINE# assert ( not AnyOf ( AllowNone , AllowNone ) ( ) . has_object_permission ( request , myview , None ) )