

def test_schema_dupe(self):
    " Check so we can't create duplicate schemas\n\n            There are unique indices in the database that should prevent us\n            from creating duplicate schema (ie, with the same name).\n        "
    schema_attrs = {
        'name': 'test-schema-dupe',
        'description': 'Testing dupe',
    }
    self.nipap.add_schema(self.auth, schema_attrs)
    self.assertRaises(NipapDuplicateError, self.nipap.add_schema, self.auth, self)

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_schema_dupe/VarMisuse@57/158 `schema_attrs`->`self`