def test_requestReceived(self):
        """
        Test that requestReceived handles requests by dispatching them to
        request_* methods.
        """
        self.channel.request_test_method = lambda data: data == b''
        self.assertTrue(self.channel.requestReceived(b'test-method', b''))
        self.assertFalse(self.channel.requestReceived(b'test-method', b'a'))
        self.assertFalse(self.channel.requestReceived(b'bad-method', b''))

        Test that requestReceived handles requests by dispatching them to
        request_* methods.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_channel.py