'Tests the channel_session decorator detects no reply channel'

def test_channel_session_no_reply_method(self):

    message = Message({}, None, None)
    class Consumer(object, ):
        @channel_session
        @channel_session
        def inner(self, message):
            message.channel_session[u'num_ponies'] = (-1)
    with self.assertRaises(ValueError):
        Consumer().inner(message)
