diff --git a/cms/djangoapps/contentstore/tests/utils.py b/cms/djangoapps/contentstore/tests/utils.py index e95bfd92a3..f1a20fab87 100644 --- a/cms/djangoapps/contentstore/tests/utils.py +++ b/cms/djangoapps/contentstore/tests/utils.py @@ -293,7 +293,6 @@ class CourseTestCase(ModuleStoreTestCase): for descriptor in items: resp = self.client.get_html(get_url('unit_handler', descriptor.location)) self.assertEqual(resp.status_code, 200) - test_no_locations(self, resp) def assertAssetsEqual(self, asset_key, course1_id, course2_id): """Verifies the asset of the given key has the same attributes in both given courses.""" @@ -310,22 +309,6 @@ class CourseTestCase(ModuleStoreTestCase): self.assertEqual(value, course2_asset_attrs[key]) -def test_no_locations(test, resp, status_code=200, html=True): - """ - Verifies that "i4x", which appears in old locations, but not - new locators, does not appear in the HTML response output. - Used to verify that database refactoring is complete. - """ - test.assertNotContains(resp, 'i4x', status_code=status_code, html=html) - if html: - # For HTML pages, it is nice to call the method with html=True because - # it checks that the HTML properly parses. However, it won't find i4x usages - # in JavaScript blocks. - content = resp.content - hits = len(re.findall(r"(?>>>>>> Fix up the signature to use course and run instead of just offering + xml_store.create_course("org", "course", "run", self.user_id) @ddt.data('draft', 'split') def test_get_course(self, default_ms):