old_contents: 
  import aiohttp
  import pytest
  
  pytestmark = pytest.mark.asyncio
  
  
  async def test_httpbin_fixture_attributes(httpbin):
      assert httpbin.url.startswith("http://localhost")
      assert (httpbin.url / "foobar").endswith("/foobar")
      assert httpbin.host == "localhost"
      assert httpbin.port
  
  
  async def test_httpbin_is_running(httpbin):
      async with aiohttp.ClientSession() as session:
          async with session.get(httpbin.url / "status/418") as resp:
              assert resp.status == 418
  
new_contents: 
  import aiohttp
  import pytest
  
  pytestmark = pytest.mark.asyncio
  
  
  async def test_httpbin_fixture_attributes(httpbin):
      assert httpbin.url.startswith("http://localhost")
      assert (httpbin.url / "foobar").endswith("/foobar")
      assert httpbin.host == "localhost"
      assert httpbin.port
  
  
  async def test_httpbin_is_running(httpbin):
      async with aiohttp.ClientSession() as session:
          async with session.get(httpbin.url / "status/418") as resp:
              assert resp.status == 418
  
  
  async def test_httpbin_version(httpbin):
      """/anything is available for httpbin >= 0.6.0."""
      async with aiohttp.ClientSession() as session:
          async with session.get(httpbin.url / "anything/anything") as resp:
              assert resp.status == 200
  
  
  async def test_httpbin_std_redirect(httpbin):
      async with aiohttp.ClientSession() as session:
          async with session.get(httpbin.url / "redirect/1", allow_redirects=False) as resp:
              assert resp.headers['location'] == '/get'
              assert resp.status == 302
  
subject: test our httpbin fixture