

def test_schema_rename(self):
    ' Rename a schema\n\n            Uses the edit_schema() functionality to rename our previously\n            created and incorrectly named schema so it hereafter has the\n            correct name. Also tests the list_schema() functionality since we\n            use that to list the modified schema.\n        '
    spec = {
        'name': 'test-schema1',
    }
    attrs = {
        'name': 'test-schema',
        'description': 'A simple test schema with correct name!',
    }
    self.nipap.edit_schema(self.auth, spec, attrs)
    schema = self.nipap.list_schema(self.auth, spec)
    self.assertEqual(schema, [], 'Old entry still exists')
    schema = self.nipap.list_schema(self.auth, {
        'name': 'test-schema',
    })
    for a in attrs:
        schema.assertEqual(schema[0][a], attrs[a], ('Modified schema differ from listed on attribute: ' + a))

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_schema_rename/VarMisuse@110/261 `self`->`schema`