'Test that credit requirements are added properly for credit course.
Make sure that the receiver correctly fires off the task when
invoked by signal.'

def test_task_adding_requirements(self):

    self.add_credit_course(self.course.id)
    requirements = get_credit_requirements(self.course.id)
    self.assertEqual(len(requirements), 0)
    on_course_publish(self.course.id)
    requirements = get_credit_requirements(self.course.id)
    self.assertEqual(len(requirements), 1)
