def test_bad_content_link_removed(self):
     link_string = "Wrong!\n\n**[Watch video to review](https://www.khanacademy.org/humanities/art-history/v/the-penguin-king-has-risen)**\n\nThat's a wrap!"
     expected_string = "Wrong!\n\n\n\nThat's a wrap!"
     self.assertEqual(expected_string, mod.convert_urls(link_string))
 def test_multiple_image_urls_in_one_string_converted(self):
     url_string = "A string with http://example.com/cat_pics.JPEG http://example.com/cat_pics2.gif"
     expected_string = "A string with /content/khan/cat_pics.JPEG /content/khan/cat_pics2.gif"
     self.assertEqual(expected_string, mod.convert_urls(url_string))
 def test_content_link_converted(self):
     link_string = "(and so that is the correct answer).**\\n\\n[Watch this video to review](https://www.khanacademy.org/humanities/history/ancient-medieval/Ancient/v/standard-of-ur-c-2600-2400-b-c-e)"
     expected_string = "(and so that is the correct answer).**\\n\\n[Watch this video to review](/learn/khan/test-prep/ap-art-history/ancient-mediterranean-ap/ancient-near-east-ap/standard-of-ur-c-2600-2400-b-c-e/)"
     self.assertEqual(expected_string, mod.convert_urls(link_string))
 def test_image_url_converted(self):
     url_string = "A string with http://example.com/cat_pics.gif"
     expected_string = "A string with /content/khan/cat_pics.gif"
     self.assertEqual(expected_string, mod.convert_urls(url_string))
 def test_bad_content_link_removed(self):
     link_string = "Wrong!\n\n**[Watch video to review](https://www.khanacademy.org/humanities/art-history/v/the-penguin-king-has-risen)**\n\nThat's a wrap!"
     expected_string = "Wrong!\n\n\n\nThat's a wrap!"
     self.assertEqual(expected_string, mod.convert_urls(link_string))
 def test_content_link_converted(self):
     link_string = "(and so that is the correct answer).**\\n\\n[Watch this video to review](https://www.khanacademy.org/humanities/history/ancient-medieval/Ancient/v/standard-of-ur-c-2600-2400-b-c-e)"
     expected_string = "(and so that is the correct answer).**\\n\\n[Watch this video to review](/learn/khan/test-prep/ap-art-history/ancient-mediterranean-ap/ancient-near-east-ap/standard-of-ur-c-2600-2400-b-c-e/)"
     self.assertEqual(expected_string, mod.convert_urls(link_string))
 def test_multiple_image_urls_in_one_string_converted(self):
     url_string = "A string with http://example.com/cat_pics.JPEG http://example.com/cat_pics2.gif"
     expected_string = "A string with /content/khan/cat_pics.JPEG /content/khan/cat_pics2.gif"
     self.assertEqual(expected_string, mod.convert_urls(url_string))
 def test_image_url_converted(self):
     url_string = "A string with http://example.com/cat_pics.gif"
     expected_string = "A string with /content/khan/cat_pics.gif"
     self.assertEqual(expected_string, mod.convert_urls(url_string))