def test_mine(self, model, client_with_credentials):
        # Create two books, one created by the logged in user and one
        # created by another user.
        model.create({
            'title': 'Book 1',
            'createdById': 'abc'
        })

        model.create({
            'title': 'Book 2',
            'createdById': 'def'
        })

        # Check the "My Books" page and make sure only one of the books
        # appears.
        with client_with_credentials() as c:
            rv = c.get('/books/mine')

        assert rv.status == '200 OK'
        body = rv.data.decode('utf-8')
        assert 'Book 1' in body
        assert 'Book 2' not in body
dataset/ETHPy150Open GoogleCloudPlatform/getting-started-python/4-auth/tests/test_auth.py/TestAuth.test_mine/original