By "mock" here do you mean reading it in from the settings?  I can definitely do that.

Jason

On Sep 4, 2013, at 7:38 AM, David Baumgold <notifications@github.com> wrote:

> In lms/djangoapps/courseware/tests/test_courses.py:
> 
> > @@ -14,3 +14,11 @@ def test_get_course_by_id_invalid_chars(self):
> >              get_course_by_id('MITx/foobar/statistics=introduction')
> >              get_course_by_id('MITx/foobar/business and management')
> >              get_course_by_id('MITx/foobar/NiñøJoséMaríáßç')
> > +
> > +    def test_get_cms_course_link_by_id(self):
> > +        """
> > +        Tests that get_cms_course_link_by_id returns the right thing
> > +        """
> > +        self.assertEqual("//localhost:8001/", get_cms_course_link_by_id("blah_bad_course_id"))
> > +        self.assertEqual("//localhost:8001/", get_cms_course_link_by_id("too/too/many/slashes"))
> > +        self.assertEqual("//localhost:8001/org/num/course/name", get_cms_course_link_by_id('org/num/name'))
> Can you mock out the "host" parameter, so that this test won't break if it changes?
> 
> —
> Reply to this email directly or view it on GitHub.
>