def test_adding(self):
     for i, message_type in enumerate(self.message_types):
         message = 'message%d' % (i + 1)
         self.assertTrue(IMessage.providedBy(self.message_config_folder[message]))
 def test_adding(self):
     for i, message_type in enumerate(self.message_types):
         message = 'message{0}'.format(i + 1)
         self.assertTrue(IMessage.providedBy(self.message_config_folder[message]))
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Message')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IMessage.providedBy(obj))
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Message')
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(IMessage.providedBy(obj))