def test_get_stats_key(self): """ get_stats_key() returns the correct catchall stats key """ self.app.endpoint = 'test' expected = 'test._catchall' handler = ErrorHandler(self.app, self.request) key = handler.get_stats_key() assert_equal(key, expected)
def test_prepare(self): """ prepare() raises an HTTPError """ handler = ErrorHandler(self.app, self.request) handler.prepare()