예제 #1
0
    def test_integration_page_non_modal(self):
        response = self.get_response(test_pathways.PagePathwayExample(),
                                     is_modal=False)
        self.assertEqual(response.status_code, 200)
        content = str(response.content)
        self.assertNotIn("modal-body", content)
        self.assertIn('form name="form"', content)

        # make sure the icon is rendered
        self.assertIn('fa fa-something', content)
예제 #2
0
 def setUp(self):
     self.patient, self.episode = self.new_patient_and_episode_please()
     self.fake_pathway_instance = MagicMock()
     pp = test_pathways.PagePathwayExample()
     self.fake_pathway_instance.to_dict.return_value = pp.to_dict(False)
     self.fake_pathway = MagicMock(return_value=self.fake_pathway_instance)