'Test that requestReceived handles requests by dispatching them to
request_* methods.'

def test_requestReceived(self):

    self.channel.request_test_method = (lambda data: (data == ''))
    self.assertTrue(self.channel.requestReceived('test-method', ''))
    self.assertFalse(self.channel.requestReceived('test-method', 'a'))
    self.assertFalse(self.channel.requestReceived('bad-method', ''))
