'Test that credit requirements cannot be added for non credit course.'

def test_task_adding_requirements_invalid_course(self):

    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), 0)
