def as_html(self):
        return mark_safe(' '.join(['%s="%s"' % (k, escape(v if not callable(v) else v()))
                                   for k, v in six.iteritems(self)]))
Testing the Trac bug tracker field value
dataset/ETHPy150Open bradleyayers/django-tables2/django_tables2/utils.py/AttributeDict.as_html--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/tests/test_trac.py/TracTests.test_bug_tracker_field