import pytest


@pytest.mark.django_db
def test_homepage(client):
    response = client.get('/')
    assert response.status_code == 200

import pytest


@pytest.mark.django_db
def test_homepage(client):
    response = client.get('/')
    assert response.status_code == 200


@pytest.mark.django_db
def test_resultspage_2012(client):
    response = client.get('/results2012/')
    assert response.status_code == 200
    assert '2012: how it was' in response.content
    assert 'Agricola de Cologne' in response.content


@pytest.mark.django_db
def test_resultspage_2013(client):
    response = client.get('/results2013/')
    assert response.status_code == 200
    assert '2013: good memories' in response.content
    assert 'Volha Dashuk' in response.content

Add acceptance tests for results pages (2012 and 2013)
Add acceptance tests for results pages (2012 and 2013)

  import pytest
  
  
  @pytest.mark.django_db
  def test_homepage(client):
      response = client.get('/')
      assert response.status_code == 200
  
+ 
+ @pytest.mark.django_db
+ def test_resultspage_2012(client):
+     response = client.get('/results2012/')
+     assert response.status_code == 200
+     assert '2012: how it was' in response.content
+     assert 'Agricola de Cologne' in response.content
+ 
+ 
+ @pytest.mark.django_db
+ def test_resultspage_2013(client):
+     response = client.get('/results2013/')
+     assert response.status_code == 200
+     assert '2013: good memories' in response.content
+     assert 'Volha Dashuk' in response.content
+ 
Add acceptance tests for results pages (2012 and 2013)
## Code Before:
import pytest


@pytest.mark.django_db
def test_homepage(client):
    response = client.get('/')
    assert response.status_code == 200

## Instruction:
Add acceptance tests for results pages (2012 and 2013)
## Code After:
import pytest


@pytest.mark.django_db
def test_homepage(client):
    response = client.get('/')
    assert response.status_code == 200


@pytest.mark.django_db
def test_resultspage_2012(client):
    response = client.get('/results2012/')
    assert response.status_code == 200
    assert '2012: how it was' in response.content
    assert 'Agricola de Cologne' in response.content


@pytest.mark.django_db
def test_resultspage_2013(client):
    response = client.get('/results2013/')
    assert response.status_code == 200
    assert '2013: good memories' in response.content
    assert 'Volha Dashuk' in response.content
