'Tests inclusion with a prefix'

def test_include_prefix(self):

    router = Router([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': u'/boom/'}, consumer=None)
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': u'/chat/django/'}, consumer=None)
    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'})
    self.assertRoute(router, channel=u'websocket.connect', content={u'path': u'/ws/v1/mentions/'}, consumer=consumer_3, kwargs={u'version': u'1'})
    router = Router([include(u'tests.test_routing.chatroom_routing_nolinestart', path=u'/ws/v(?P<version>[0-9]+)')])
    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'})
