

def test_schema_basic(self):
    ' Basic schema test\n\n            1. Add a new schema\n            2. List with filters to get newly created schema\n            3. Verify listed schema coincides with input args for added schema\n            4. Remove schema\n        '
    attrs = {
        'name': 'test-schema-wrong',
        'description': 'A simple test schema with incorrect name!',
    }
    attrs['id'] = self.nipap.add_schema(self.auth, attrs)
    schema = self.nipap.list_schema(attrs.auth, {
        'id': attrs['id'],
    })
    for a in attrs:
        self.assertEqual(schema[0][a], attrs[a], ('Added object differ from listed on attribute: ' + a))

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_schema_basic/VarMisuse@54/169 `self`->`attrs`