'Tests the channel_session decorator'

def test_channel_session(self):

    message = Message({u'reply_channel': u'test-reply'}, None, None)
    @channel_session
    def inner(message):
        message.channel_session[u'num_ponies'] = (-1)
    inner(message)
    session2 = session_for_reply_channel(u'test-reply')
    self.assertEqual(session2[u'num_ponies'], (-1))
