'Test to call amore complex callback.'

def test_call(self):

    self.char1.key = 'one'
    self.char2.key = 'two'
    code = dedent('\n                                                if    character.key    ==    "one":\n                                                                character.db.health    =    50\n                                                else:\n                                                                character.db.health    =    0\n                                '.strip('\n'))
    self.handler.add_callback(self.room1, 'dummy', code, author=self.char1, valid=True)
    self.assertTrue(self.handler.call(self.room1, 'dummy', locals={'character': self.char1}))
    self.assertEqual(self.char1.db.health, 50)
    self.assertTrue(self.handler.call(self.room1, 'dummy', locals={'character': self.char2}))
    self.assertEqual(self.char2.db.health, 0)
