'Verify that the static URL has been replaced.'

@ddt.data((u'course_mongo', u'<a    href="/c4x/TestX/TS01/asset/id">'), (u'course_split', u'<a    href="/asset-v1:TestX+TS02+2015+type@asset+block/id">'))
@ddt.unpack
def test_replace_static_urls(self, course_id, anchor_tag):

    course = getattr(self, course_id)
    test_replace = replace_static_urls(data_dir=None, course_id=course.id, block=course, view=u'baseview', frag=Fragment(u'<a    href="/static/id">'), context=None)
    self.assertIsInstance(test_replace, Fragment)
    self.assertEqual(test_replace.content, anchor_tag)
