def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='Person')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IPerson.providedBy(new_object))
from Products.CMFCore.utils import getToolByName

from plone.directives import dexterity
from plone.formwidget.contenttree import ObjPathSourceBinder

from z3c.relationfield.schema import RelationList, RelationChoice

from s17.person.behaviors.user import IPloneUser
from s17.person.behaviors.contact import IContactInfo
from s17.person.content.person import IPerson
from s17.person.content.person import Person

from s17.employee import MessageFactory as _


fields = IPerson.names()
fields.reverse()


class IEmployee(IPerson):
    """ A representation of a Employee
    """

    employee_id = schema.Int(
        title=_(u"Registration number"),
        required=True,
    )

    position = schema.TextLine(
        title=_(u"Position"),
        description=_(u"Position in the company."),
 def test_adding(self):
     self.assertTrue(IPerson.providedBy(self.p1))