from nose.tools import eq_ as assert_eq

@score(problem="hello", points=0.5)
def grade_hello1():
    """Grade 'hello' with input 'Jessica'"""
    msg = hello("Jessica")
    assert_eq(msg, "Hello, Jessica!")

@score(problem="hello", points=0.5)
def grade_hello2():
    """Grade 'hello' with input 'Python'"""
    msg = hello("Python")
    assert_eq(msg, "Hello, Python!")

@score(problem="goodbye", points=0.5)
def grade_goodbye1():
    """Grade 'goodbye' with input 'Jessica'"""
    msg = goodbye("Jessica")
    assert_eq(msg, "Goodbye, Jessica")

@score(problem="goodbye", points=0.5)
def grade_goodbye2():
    """Grade 'goodbye' with input 'Python'"""
    msg = goodbye("Python")
    assert_eq(msg, "Goodbye, Python")

from nose.tools import eq_ as assert_eq


@score(problem="Problem 1/Part A", points=0.5)
def grade_hello1():
    """Grade 'hello' with input 'Jessica'"""
    msg = hello("Jessica")
    assert_eq(msg, "Hello, Jessica!")


@score(problem="Problem 1/Part A", points=0.5)
def grade_hello2():
    """Grade 'hello' with input 'Python'"""
    msg = hello("Python")
    assert_eq(msg, "Hello, Python!")


@score(problem="Problem 1/Part B", points=0.5)
def grade_goodbye1():
    """Grade 'goodbye' with input 'Jessica'"""
    msg = goodbye("Jessica")
    assert_eq(msg, "Goodbye, Jessica")


@score(problem="Problem 1/Part B", points=0.5)
def grade_goodbye2():
    """Grade 'goodbye' with input 'Python'"""
    msg = goodbye("Python")
    assert_eq(msg, "Goodbye, Python")

Update example autograding code to use heading names
Update example autograding code to use heading names

  from nose.tools import eq_ as assert_eq
  
+ 
- @score(problem="hello", points=0.5)
+ @score(problem="Problem 1/Part A", points=0.5)
  def grade_hello1():
      """Grade 'hello' with input 'Jessica'"""
      msg = hello("Jessica")
      assert_eq(msg, "Hello, Jessica!")
  
+ 
- @score(problem="hello", points=0.5)
+ @score(problem="Problem 1/Part A", points=0.5)
  def grade_hello2():
      """Grade 'hello' with input 'Python'"""
      msg = hello("Python")
      assert_eq(msg, "Hello, Python!")
  
+ 
- @score(problem="goodbye", points=0.5)
+ @score(problem="Problem 1/Part B", points=0.5)
  def grade_goodbye1():
      """Grade 'goodbye' with input 'Jessica'"""
      msg = goodbye("Jessica")
      assert_eq(msg, "Goodbye, Jessica")
  
+ 
- @score(problem="goodbye", points=0.5)
+ @score(problem="Problem 1/Part B", points=0.5)
  def grade_goodbye2():
      """Grade 'goodbye' with input 'Python'"""
      msg = goodbye("Python")
      assert_eq(msg, "Goodbye, Python")
  
Update example autograding code to use heading names
## Code Before:
from nose.tools import eq_ as assert_eq

@score(problem="hello", points=0.5)
def grade_hello1():
    """Grade 'hello' with input 'Jessica'"""
    msg = hello("Jessica")
    assert_eq(msg, "Hello, Jessica!")

@score(problem="hello", points=0.5)
def grade_hello2():
    """Grade 'hello' with input 'Python'"""
    msg = hello("Python")
    assert_eq(msg, "Hello, Python!")

@score(problem="goodbye", points=0.5)
def grade_goodbye1():
    """Grade 'goodbye' with input 'Jessica'"""
    msg = goodbye("Jessica")
    assert_eq(msg, "Goodbye, Jessica")

@score(problem="goodbye", points=0.5)
def grade_goodbye2():
    """Grade 'goodbye' with input 'Python'"""
    msg = goodbye("Python")
    assert_eq(msg, "Goodbye, Python")

## Instruction:
Update example autograding code to use heading names
## Code After:
from nose.tools import eq_ as assert_eq


@score(problem="Problem 1/Part A", points=0.5)
def grade_hello1():
    """Grade 'hello' with input 'Jessica'"""
    msg = hello("Jessica")
    assert_eq(msg, "Hello, Jessica!")


@score(problem="Problem 1/Part A", points=0.5)
def grade_hello2():
    """Grade 'hello' with input 'Python'"""
    msg = hello("Python")
    assert_eq(msg, "Hello, Python!")


@score(problem="Problem 1/Part B", points=0.5)
def grade_goodbye1():
    """Grade 'goodbye' with input 'Jessica'"""
    msg = goodbye("Jessica")
    assert_eq(msg, "Goodbye, Jessica")


@score(problem="Problem 1/Part B", points=0.5)
def grade_goodbye2():
    """Grade 'goodbye' with input 'Python'"""
    msg = goodbye("Python")
    assert_eq(msg, "Goodbye, Python")
