def test_delete(self, app, model):
        existing = model.create({'title': "Temp Title"})

        with app.test_client() as c:
            rv = c.get(
                '/books/%s/delete' % existing['id'],
                follow_redirects=True)

        assert rv.status == '200 OK'
        assert not model.read(existing['id'])
dataset/ETHPy150Open GoogleCloudPlatform/getting-started-python/2-structured-data/tests/test_crud.py/TestCrudActions.test_delete/original