def test_build_missing_keyword(self): route = Route(r'/<year:\d{4}>', None) self.assertRaises(KeyError, route.build, Request.blank('/'), (), {})