# Path: lib/grades.py
# GRADE_MAPPINGS = {
#     'A': 12.0,
#     'A-': 11.0,
#     'B+': 10.0,
#     'B': 9.0,
#     'B-': 8.0,
#     'C+': 7.0,
#     'C': 6.0,
#     'C-': 5.0,
#     'D': 3.0,
#     'E': 0.0
# }
# def numeric_value_for_grade(grade):


from django.test import TestCase
from lib import grades


class GradesTestCase(TestCase):

    def test_numeric_value_for_grade_retrieves_single_letter_grades(self):
        for grade, value in grades.GRADE_MAPPINGS.iteritems():
            self.assertEqual(grades.numeric_value_for_grade(grade), value)

    def test_numeric_value_for_grade_handles_in_between_grades(self):

# Path: lib/grades.py
# GRADE_MAPPINGS = {
#     'A': 12.0,
#     'A-': 11.0,
#     'B+': 10.0,
#     'B': 9.0,
#     'B-': 8.0,
#     'C+': 7.0,
#     'C': 6.0,
#     'C-': 5.0,
#     'D': 3.0,
#     'E': 0.0
# }
# def numeric_value_for_grade(grade):


# Path: apps/web/tests/lib_tests/test_grades.py
from django.test import TestCase
from lib import grades



class GradesTestCase(TestCase):

    def test_numeric_value_for_grade_retrieves_single_letter_grades(self):
        for grade, value in grades.GRADE_MAPPINGS.iteritems():
            self.assertEqual(grades.numeric_value_for_grade(grade), value)

    def test_numeric_value_for_grade_handles_in_between_grades(self):

        self.assertEqual(grades.numeric_value_for_grade(