def test_display_2(self): # Test if person name is on page in format designated in template request_factory = RequestFactory() request = request_factory.get('/organizations') response = display(request, 'organizations') htmlstring = response.content self.assertNotEqual(htmlstring.find('Public Health'),-1)
def test_display_3(self): # Test if person name is on page in format designated in template request_factory = RequestFactory() request = request_factory.get('/crises') response = display(request, 'crises') htmlstring = response.content self.assertNotEqual(htmlstring.find('Natural Disaster'),-1)
def test_display_1(self): # Test if person name is on page in format designated in template request_factory = RequestFactory() request = request_factory.get('/people') response = display(request, 'people') htmlstring = response.content self.assertNotEqual(htmlstring.find('President'),-1)