def METHOD_NAME(self):
    record = {"name": "Grzegorz", "age": 30, "occupation": "programmer"}
    table = SimpleTable([record])
    self.assertEqual(len(table.rows), 4)  # rows + pinned data
    row = table.rows[0]
    with self.assertRaises(IndexError):
        table.rows[1]
    with self.assertRaises(IndexError):
        row.get_cell(3)
    self.assertEqual(row.get_cell("name"), record["name"])
    self.assertEqual(row.get_cell("occupation"), record["occupation"])
    self.assertEqual(row.get_cell("age"), record["age"])
    with self.assertRaises(KeyError):
        row.get_cell("gamma")
    self.assertIn("name", row)
    self.assertIn("occupation", row)
    self.assertNotIn("gamma", row)