Ejemplo n.º 1
0
    def test_integration_wizard_modal(self):
        response = self.get_response(test_pathways.WizardPathwayExample(),
                                     is_modal=True)
        self.assertEqual(response.status_code, 200)
        content = str(response.content)
        self.assertIn("modal-body", content)
        self.assertIn('form name="form"', content)

        # make sure the icon is rendered
        self.assertIn('fa fa-something', content)
Ejemplo n.º 2
0
 def test_login_required(self):
     response = self.get_response(test_pathways.WizardPathwayExample(),
                                  login=False)
     self.assertEqual(response.status_code, 302)