def check_attribute(self, name, paginator, expected, params):
        got = getattr(paginator, name)
        self.assertEqual(expected, got,
            "For '%s', expected %s but got %s.  Paginator parameters were: %s"
            % (name, expected, got, params))
Same as ``link_to`` but return just the label if the condition is false.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/pagination_regress/tests.py/PaginatorTests.check_attribute--crossover with--dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/html/tags.py/link_to_if