def METHOD_NAME(self):
    class TestOnlyPinnedTable(tables.Table):
        foo = tables.TemplateColumn("value={{ value }}")
        def __init__(self, data):
            self.pinned = data
            revised_data = []
            super().__init__(revised_data)
        def get_top_pinned_data(self):
            return self.pinned
    table = TestOnlyPinnedTable([{"foo": "bar"}])
    for row in table.rows:
        self.assertEqual(row.get_cell("foo"), "value=bar")
    template = Template("{% load django_tables2 %}{% render_table table %}")
    html = template.render(Context({"request": build_request(), "table": table}))
    self.assertIn("<td >value=bar</td>", html)