def test_display_more_2(self): # Test if organization name is on page in format designated in template request_factory = RequestFactory() request = request_factory.get('/organizations/whorgn/videos') response = display_more(request, 'organizations', 'whorgn', 'videos') htmlstring = response.content self.assertNotEqual(htmlstring.find('World Health Organization'),-1)
def test_display_more_3(self): # Test if crisis name is on page in format designated in template request_factory = RequestFactory() request = request_factory.get('/crises/haiear/videos') response = display_more(request, 'crises', 'haiear', 'videos') htmlstring = response.content self.assertNotEqual(htmlstring.find('Haiti Earthquake'),-1)
def test_display_more_1(self): # Test if person name is on page in format designated in template request_factory = RequestFactory() request = request_factory.get('/people/brobma/videos') response = display_more(request, 'people', 'brobma', 'videos') htmlstring = response.content self.assertNotEqual(htmlstring.find('Barack Obama'),-1)