'Create the event handler.'

def setUp(self):

    super(TestEventHandler, self).setUp()
    self.handler = create_script('evennia.contrib.ingame_python.scripts.EventHandler')
    if OLD_EVENTS:
        self.handler.ndb.events = dict(OLD_EVENTS)
    self.char1.swap_typeclass('evennia.contrib.ingame_python.typeclasses.EventCharacter')
    self.char2.swap_typeclass('evennia.contrib.ingame_python.typeclasses.EventCharacter')
    self.room1.swap_typeclass('evennia.contrib.ingame_python.typeclasses.EventRoom')
    self.room2.swap_typeclass('evennia.contrib.ingame_python.typeclasses.EventRoom')
    self.exit.swap_typeclass('evennia.contrib.ingame_python.typeclasses.EventExit')
