diff --git a/master/buildbot/status/web/base.py b/master/buildbot/status/web/base.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/base.py
+++ b/master/buildbot/status/web/base.py
@@ -514,6 +514,8 @@ def createJinjaEnv(revlink=None, changecommentlink=None,
 
     env.install_null_translations() # needed until we have a proper i18n backend
 
+    env.tests['mapping'] = lambda obj : isinstance(obj, dict)
+
     env.filters.update(dict(
         urlencode = urllib.quote,
         email = emailfilter,
add a 'mapping' test for Jinja

This makes the template changes in c<I>f<I>d work.