'Test illegal catalog deletion.'

@pytest.mark.parametrize(u'methodname', [u'delete_catalog', u'delete_catalog_by_url'])
def test_illegal_deletion(self, methodname):

    method = getattr(self.db, methodname)
    with pytest.raises(MissingCatalog):
        method(u'not_there')
