
def test_bar_fixture(testdir):
    """Make sure that pytest accepts our fixture."""

    # create a temporary pytest test module
    testdir.makepyfile("""
        def test_sth(bar):
            assert bar == "europython2015"
    """)

    # run pytest with the following cmd args
    result = testdir.runpytest(
        '--foo=something',
        '-v'
    )

    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        '*::test_a PASSED',
    ])

    # make sure that that we get a '0' exit code for the testsuite
    assert result.ret == 0
    

def test_help_message(testdir):
    result = testdir.runpytest(
        '--help',
    )
    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        'cat:',
        '*--foo=DEST_FOO*Set the value for the fixture "bar".',
    ])


def test_bar_fixture(testdir):
    """Make sure that pytest accepts our fixture."""

    # create a temporary pytest test module
    testdir.makepyfile("""
        def test_sth(bar):
            assert bar == "europython2015"
    """)

    # run pytest with the following cmd args
    result = testdir.runpytest(
        '--foo=something',
        '-v'
    )

    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        '*::test_a PASSED',
    ])

    # make sure that that we get a '0' exit code for the testsuite
    assert result.ret == 0


def test_help_message(testdir):
    result = testdir.runpytest(
        '--help',
    )
    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        '{{cookiecutter.plugin_name}}:',
        '*--foo=DEST_FOO*Set the value for the fixture "bar".',
    ])

Use the correct variable for the test
Use the correct variable for the test

  
  def test_bar_fixture(testdir):
      """Make sure that pytest accepts our fixture."""
  
      # create a temporary pytest test module
      testdir.makepyfile("""
          def test_sth(bar):
              assert bar == "europython2015"
      """)
  
      # run pytest with the following cmd args
      result = testdir.runpytest(
          '--foo=something',
          '-v'
      )
  
      # fnmatch_lines does an assertion internally
      result.stdout.fnmatch_lines([
          '*::test_a PASSED',
      ])
  
      # make sure that that we get a '0' exit code for the testsuite
      assert result.ret == 0
-     
+ 
  
  def test_help_message(testdir):
      result = testdir.runpytest(
          '--help',
      )
      # fnmatch_lines does an assertion internally
      result.stdout.fnmatch_lines([
-         'cat:',
+         '{{cookiecutter.plugin_name}}:',
          '*--foo=DEST_FOO*Set the value for the fixture "bar".',
      ])
  
Use the correct variable for the test
## Code Before:

def test_bar_fixture(testdir):
    """Make sure that pytest accepts our fixture."""

    # create a temporary pytest test module
    testdir.makepyfile("""
        def test_sth(bar):
            assert bar == "europython2015"
    """)

    # run pytest with the following cmd args
    result = testdir.runpytest(
        '--foo=something',
        '-v'
    )

    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        '*::test_a PASSED',
    ])

    # make sure that that we get a '0' exit code for the testsuite
    assert result.ret == 0
    

def test_help_message(testdir):
    result = testdir.runpytest(
        '--help',
    )
    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        'cat:',
        '*--foo=DEST_FOO*Set the value for the fixture "bar".',
    ])

## Instruction:
Use the correct variable for the test
## Code After:

def test_bar_fixture(testdir):
    """Make sure that pytest accepts our fixture."""

    # create a temporary pytest test module
    testdir.makepyfile("""
        def test_sth(bar):
            assert bar == "europython2015"
    """)

    # run pytest with the following cmd args
    result = testdir.runpytest(
        '--foo=something',
        '-v'
    )

    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        '*::test_a PASSED',
    ])

    # make sure that that we get a '0' exit code for the testsuite
    assert result.ret == 0


def test_help_message(testdir):
    result = testdir.runpytest(
        '--help',
    )
    # fnmatch_lines does an assertion internally
    result.stdout.fnmatch_lines([
        '{{cookiecutter.plugin_name}}:',
        '*--foo=DEST_FOO*Set the value for the fixture "bar".',
    ])
