'Tests that filters catch things correctly.'

def test_filters(self):

    router = Router([route(u'http.request', consumer_1, path=u'^/chat/$'), route(u'http.disconnect', consumer_2), route(u'http.request', consumer_3)])
    self.assertRoute(router, channel=u'http.request', content={u'path': u'/chat/'}, consumer=consumer_1, kwargs={})
    self.assertRoute(router, channel=u'http.request', content={}, consumer=consumer_3, kwargs={})
    self.assertRoute(router, channel=u'http.request', content={u'path': u'/liveblog/'}, consumer=consumer_3, kwargs={})
