'Verify error handling for delegated widget methods'

def testInvalidDelegation(self):

    widget = self.widget
    agent = widget.create_agent('agent')
    with self.assertRaises(NotImplementedError):
        agent.do('nonexistent', {})
    with self.assertRaises(NotImplementedError):
        agent.do('not_delegated', {})
