def test_add_anonymous(self, app):
        data = {
            'title': 'Test Book',
        }

        with app.test_client() as c:
            rv = c.post('/books/add', data=data, follow_redirects=True)

        assert rv.status == '200 OK'
        body = rv.data.decode('utf-8')
        assert 'Test Book' in body
        assert 'Added by Anonymous' in body
dataset/ETHPy150Open GoogleCloudPlatform/getting-started-python/4-auth/tests/test_auth.py/TestAuth.test_add_anonymous/original