def test_schema_add_crap_input(self):
        attrs = {
                'name': 'test-schema-crap',
                'description': 'A simple test schema with incorrect name!',
                'crap': 'this is just some crap'
                }
        # missing everything
        self.assertRaises(NipapMissingInputError, self.nipap.add_schema, self.auth, { })
        # missing description
        self.assertRaises(NipapMissingInputError, self.nipap.add_schema, self.auth, { 'name': 'crapson' })
        # have required and extra crap
        self.assertRaises(NipapExtraneousInputError, self.nipap.add_schema, self.auth, attrs)
Try to input junk into add_schema and expect error
dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py/NipapTest.test_schema_add_crap_input