#NEWLINE# def test_has_object_permission_public( self ) : #NEWLINE# #INDENT# obj = Mock ( ) #NEWLINE# obj . is_public . return_value = True #NEWLINE# obj . is_listed = True #NEWLINE# for verb in self . safe_methods : #NEWLINE# #INDENT# assert self . permission . has_object_permission ( self . request ( verb ) , myview , obj ) #NEWLINE# #UNINDENT# for verb in self . unsafe_methods : #NEWLINE# #INDENT# assert ( not self . permission . has_object_permission ( self . request ( verb ) , myview , obj ) )