

def test_prefix_remove(self):
    ' Remove a prefix\n        '
    schema = {
        'id': self.schema_attrs['id'],
    }
    prefix = self.nipap.list_prefix(schema.auth, schema, {
        'id': self.prefix_attrs['id'],
    })
    self.assertEqual(prefix[0]['id'], self.prefix_attrs['id'], 'Record must exist before we can delete it')
    self.nipap.remove_prefix(self.auth, schema, {
        'id': self.prefix_attrs['id'],
    })
    prefix = self.nipap.list_prefix(self.auth, schema, {
        'id': self.prefix_attrs['id'],
    })
    self.assertEqual(prefix, [], 'Old entry still exists')

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_prefix_remove/VarMisuse@36/56 `self`->`schema`