def test_add_attribute(self):
        if self.db.version < 90100:
            self.skipTest('Only available on PG 9.1')
        inmap = self.std_map()
        inmap['schema public'].update({'type t1': {
            'attributes': [{'x': {'type': 'integer'}},
                           {'y': {'type': 'integer'}},
                           {'z': {'type': 'integer'}}]}})
        sql = self.to_sql(inmap, ["CREATE TYPE t1 AS (x integer, y integer)"])
        assert fix_indent(sql[0]) == "ALTER TYPE t1 ADD ATTRIBUTE z integer"
Checks for slug collisions on root (not home) page and a home page child - uses API to create pages
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_type.py/CompositeToSqlTestCase.test_add_attribute--crossover with--dataset/ETHPy150Open divio/django-cms/cms/tests/test_page.py/PagesTestCase.test_slug_collisions_api_2