Merge pull request #5840 from edx/renzo/fix-track-selection-tests

Fix track selection tests
This commit is contained in:
Daniel Friedman
2014-11-04 16:58:04 -05:00

View File

@@ -109,10 +109,10 @@ class TestProfEdVerification(ModuleStoreTestCase):
# automatically in the course.
self.assertFalse(CourseEnrollment.is_enrolled(self.user, self.course_key))
# Expect that the rendered page says that the student is "registering",
# not that they've already been registered.
self.assertIn("You are registering for", resp.content)
self.assertNotIn("You are now registered", resp.content)
# Expect that the rendered page says that the student is "enrolled",
# not that they've already been enrolled.
self.assertIn("You are enrolling", resp.content)
self.assertNotIn("You are now enrolled", resp.content)
def _prices_on_page(self, page_content):
""" Retrieve the available prices on the verify page. """