Commit e6b10d46 by tasawernawaz Committed by Bill DeRusha

comments/docstings added in test_wrapper

parent c2de6bad
...@@ -63,9 +63,7 @@ class CourseRunWrapperTests(TestCase): ...@@ -63,9 +63,7 @@ class CourseRunWrapperTests(TestCase):
([Seat.PROFESSIONAL], Seat.PROFESSIONAL), ([Seat.PROFESSIONAL], Seat.PROFESSIONAL),
) )
def test_course_type_(self, seats_list, course_type): def test_course_type_(self, seats_list, course_type):
""" Verify that the wrapper return the course type according to the """ Verify that the wrapper return the course type according to the available seats."""
available seats.
"""
self._generate_seats(seats_list) self._generate_seats(seats_list)
wrapper_object = CourseRunWrapper(self.course_run) wrapper_object = CourseRunWrapper(self.course_run)
self.assertEqual(wrapper_object.course_type, course_type) self.assertEqual(wrapper_object.course_type, course_type)
...@@ -179,7 +177,7 @@ class CourseRunWrapperTests(TestCase): ...@@ -179,7 +177,7 @@ class CourseRunWrapperTests(TestCase):
"""Verify that the wrapper return staff list.""" """Verify that the wrapper return staff list."""
staff = PersonFactory() staff = PersonFactory()
# another staff with position # another staff with position by default staff has no position associated.
staff_2 = PersonFactory() staff_2 = PersonFactory()
position = PositionFactory(person=staff_2) position = PositionFactory(person=staff_2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment