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)
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)