text: import os
  import tempfile
  import pytest
  import ancs
  
  
  @pytest.fixture()
  def client():
      app = ancs.create_app()
      db_fd, app.config['DATABASE'] = tempfile.mkstemp()
      app.config['TESTING'] = True
  
      with app.test_client() as client:
          yield client
  
      os.close(db_fd)
      os.unlink(app.config['DATABASE'])
  
  
  def test_empty_db(client):
      """Start with a blank database."""
  
      rv = client.get('/')
      assert 404 == rv.status_code
  