'Accept an callback.'

def test_accept(self):

    self.call(CmdCallback(), '/add    here    =    time    8:00', caller=self.char2)
    editor = self.char2.ndb._eveditor
    self.assertIsNotNone(editor)
    editor.update_buffer(dedent('\n                                                room.msg_contents("It\'s    8    PM,    everybody    up!")\n                                '.strip('\n')))
    editor.save_buffer()
    editor.quit()
    callback = self.room1.callbacks.get('time')[0]
    self.assertEqual(callback.valid, False)
    self.call(CmdCallback(), '/accept    here    =    time    1', caller=self.char2)
    callback = self.room1.callbacks.get('time')[0]
    self.assertEqual(callback.valid, False)
    self.call(CmdCallback(), '/accept    here    =    time    1')
    callback = self.room1.callbacks.get('time')[0]
    self.assertEqual(callback.valid, True)
