diff --git a/test/test_page.py b/test/test_page.py index bf776f5..c31b41a 100644 --- a/test/test_page.py +++ b/test/test_page.py @@ -44,16 +44,17 @@ def test_already_online_raises(self, course, page_has_local_images): def test_doesnt_find_deleted(self, course, page_has_local_images): name = page_has_local_images.name page_has_local_images.publish(course,overwrite=True) - f = mc.find_page_in_course(name,course) + f = mc.course_interaction_functions.find_page_in_course(name,course) f.delete() - assert not mc.is_page_already_uploaded(name,course) + assert not mc.course_interaction_functions.is_page_already_uploaded(name,course) def test_can_find_published(self, course, page_has_local_images): page_has_local_images.publish(course,overwrite=True) - assert mc.is_page_already_uploaded(page_has_local_images.name,course) + assert mc.course_interaction_functions.is_page_already_uploaded(page_has_local_images.name,course) def test_content(self, course): content = course.get_pages(search_term='Test Has Local Images')[0].show_latest_revision().body assert 'testing source including images' in content assert 'alt="A menagerie of Herwig Hauser surfaces"' in content + assert ('## an image using html' not in content) and "The markdown header was not translated to html."