code: def test_index(client, auth):
      text = client.get("/").text
      assert "Log In" in text
      assert "Register" in text
  
      auth.login()
      text = client.get("/").text
      assert "test title" in text
      assert "by test on 2018-01-01" in text
      assert "test\nbody" in text
      assert 'href="/1/update"' in text
  
file_path: flask-sqlalchemy/examples/flaskr/tests/test_blog.py
imports: import pytest
  from flaskr import db
  from flaskr.auth.models import User
  from flaskr.blog.models import Post
label_desc: Use image node_id 1 for calling a global function with example usage: test_index(client, auth) without return types