def test_journal_bundle_with_valid_data(self, mock_bundles,
                                         mock_pricing_data):
     """
     Test the marketing page with journal bundle data.
     """
     journal_bundles = get_mocked_journal_bundles()
     journal_bundle = journal_bundles[0]
     mock_pricing_data.return_value = get_mocked_pricing_data()
     mock_bundles.return_value = journal_bundles
     response = self.client.get(
         path=reverse("openedx.journals.bundle_about",
                      kwargs={'bundle_uuid': str(uuid.uuid4())}))
     self.assertEqual(response.status_code, 200)
     self.assertContains(response, "Purchase the Bundle")
     self.assertContains(response, journal_bundle["title"])
     self.assertContains(response,
                         journal_bundle["courses"][0]["short_description"])
     self.assertContains(
         response, journal_bundle["courses"][0]["course_runs"][0]["title"])
 def test_journal_bundle_with_valid_data(self, mock_bundles, mock_pricing_data):
     """
     Test the marketing page with journal bundle data.
     """
     journal_bundles = get_mocked_journal_bundles()
     journal_bundle = journal_bundles[0]
     mock_pricing_data.return_value = get_mocked_pricing_data()
     mock_bundles.return_value = journal_bundles
     response = self.client.get(
         path=reverse(
             "openedx.journals.bundle_about",
             kwargs={'bundle_uuid': str(uuid.uuid4())}
         )
     )
     self.assertEqual(response.status_code, 200)
     self.assertContains(response, "Purchase the Bundle")
     self.assertContains(response, journal_bundle["title"])
     self.assertContains(response, journal_bundle["courses"][0]["short_description"])
     self.assertContains(response, journal_bundle["courses"][0]["course_runs"][0]["title"])
 def setUp(self):
     super(JournalIndexViewTest, self).setUp()
     self.journal_bundles = get_mocked_journal_bundles()
     self.journal_bundle = self.journal_bundles[0]
     self.journals = get_mocked_journals()
 def setUp(self):
     super(JournalIndexViewTest, self).setUp()
     self.journal_bundles = get_mocked_journal_bundles()
     self.journal_bundle = self.journal_bundles[0]
     self.journals = get_mocked_journals()