def test_queryset_render(self):
        table = Table(Foo.objects.all(), ['id', 'bar'])
        result = [
            ['ID', 'bar'],
            [
                {'value': self.foo_1.id, 'html_attributes': ''},
                {'value': 'Test1', 'html_attributes': ''}
            ]
        ]
        self.assertListEqual(table.get_table_content(), result)
Test get_perm_key function.
dataset/ETHPy150Open allegro/ralph/src/ralph/lib/table/tests.py/TableRenderTestCase.test_queryset_render