def test_encode(): table = Table() expected = {"rows": [], "cols": []} result = table.encode() assert json.loads(result) == expected