'Tests that having the message key be bytes and pattern unicode (or vice-versa)
still works.'

def test_mixed_unicode_bytes(self):

    router = Router([route(u'websocket.connect', consumer_1, path=u'^/foo/'), include(u'tests.test_routing.chatroom_routing', path=u'^/ws/v(?P<version>[0-9]+)')])
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': '/boom/'}, consumer=None)
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': '/foo/'}, consumer=consumer_1)
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': '/ws/v2/chat/django/'}, consumer=consumer_2, kwargs={u'version': u'2', u'room': u'django'})
    router = Router([route(u'websocket.connect', consumer_1, path='^/foo/'), include(u'tests.test_routing.chatroom_routing', path='^/ws/v(?P<version>[0-9]+)')])
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': u'/boom/'}, consumer=None)
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': u'/foo/'}, consumer=consumer_1)
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': u'/ws/v2/chat/django/'}, consumer=consumer_2, kwargs={u'version': u'2', u'room': u'django'})
