

def test_schema_add_crap_input(self):
    ' Try to input junk into add_schema and expect error\n\n        '
    attrs = {
        'name': 'test-schema-crap',
        'description': 'A simple test schema with incorrect name!',
        'crap': 'this is just some crap',
    }
    self.assertRaises(NipapMissingInputError, self.nipap.add_schema, self.auth, {
        
    })
    self.assertRaises(NipapMissingInputError, self.nipap.add_schema, self.auth, {
        'name': 'crapson',
    })
    self.assertRaises(NipapExtraneousInputError, self.nipap.add_schema, self.auth, attrs)

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_schema_add_crap_input/original