From 719921a0ddb9fc332fdc434846b5e340a43931df Mon Sep 17 00:00:00 2001 From: Michael Gallaspy Date: Fri, 18 Sep 2015 15:00:04 -0700 Subject: [PATCH] Remove duplicate TestCase subclass TestUrlConversion is defined twice... one was clearly inadvertantly left in, since the other has the same tests, but updated. --- .../contentload/tests/generate_assessment_zips.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/kalite/contentload/tests/generate_assessment_zips.py b/kalite/contentload/tests/generate_assessment_zips.py index b0ff7913c0..1fe313c47d 100644 --- a/kalite/contentload/tests/generate_assessment_zips.py +++ b/kalite/contentload/tests/generate_assessment_zips.py @@ -67,19 +67,6 @@ def test_localize_all_graphie_urls(self): self.assertNotIn("web+graphie://ka-perseus", new_item_data) -class TestUrlConversion(TestCase): - - def test_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_multiple_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)) - - class GenerateAssessmentItemsCommandTests(KALiteTestCase): def setUp(self):