from selenium import webdriver
import pytest


@pytest.fixture(scope='function')
def browser(request):
    browser_ = webdriver.Firefox()

    def fin():
        browser_.quit()
    request.addfinalizer(fin)

    return browser_


def test_can_show_a_relevant_code_snippet(browser):
    browser.get('http://localhost:8000')

    assert 'Django' in browser.title

from selenium import webdriver
import pytest


@pytest.fixture(scope='function')
def browser(request):
    browser_ = webdriver.Firefox()

    def fin():
        browser_.quit()
    request.addfinalizer(fin)

    return browser_


def test_can_show_a_relevant_code_snippet(browser):
    # Jan visits the site
    browser.get('http://localhost:8000')

    # He notices the title references the site name
    site_name = 'Scout'
    assert site_name.lower() in browser.title.lower()

    assert False, 'incomplete test'

Change FT to expect site name in title
Change FT to expect site name in title

  from selenium import webdriver
  import pytest
  
  
  @pytest.fixture(scope='function')
  def browser(request):
      browser_ = webdriver.Firefox()
  
      def fin():
          browser_.quit()
      request.addfinalizer(fin)
  
      return browser_
  
  
  def test_can_show_a_relevant_code_snippet(browser):
+     # Jan visits the site
      browser.get('http://localhost:8000')
  
-     assert 'Django' in browser.title
+     # He notices the title references the site name
+     site_name = 'Scout'
+     assert site_name.lower() in browser.title.lower()
  
+     assert False, 'incomplete test'
+ 
Change FT to expect site name in title
## Code Before:
from selenium import webdriver
import pytest


@pytest.fixture(scope='function')
def browser(request):
    browser_ = webdriver.Firefox()

    def fin():
        browser_.quit()
    request.addfinalizer(fin)

    return browser_


def test_can_show_a_relevant_code_snippet(browser):
    browser.get('http://localhost:8000')

    assert 'Django' in browser.title

## Instruction:
Change FT to expect site name in title
## Code After:
from selenium import webdriver
import pytest


@pytest.fixture(scope='function')
def browser(request):
    browser_ = webdriver.Firefox()

    def fin():
        browser_.quit()
    request.addfinalizer(fin)

    return browser_


def test_can_show_a_relevant_code_snippet(browser):
    # Jan visits the site
    browser.get('http://localhost:8000')

    # He notices the title references the site name
    site_name = 'Scout'
    assert site_name.lower() in browser.title.lower()

    assert False, 'incomplete test'
