def test_return_title_of_found_portal_type(self): contact = create(Builder('contact') .with_minimal_info(u'Ch\xf6ck', u'4orris') .within(self.contactfolder)) self.assertEqual( "Contact folder", get_organization(contact, ['ftw.contacts.ContactFolder']))
def organization(self): return get_organization( self, ['OrgUnit', 'ftw.simplelayout.ContentPage'])
def test_return_empty_if_portal_type_not_found(self): self.assertEqual( "", get_organization(self.contactfolder, ['ftw.contacts.Contact']))
def test_return_empty_if_no_portal_types_are_defined(self): self.assertEqual("", get_organization(self.contactfolder))