'Helper function.
Test response for 200 status code. Also test if response body
contains event/service name.'

def _test_path(self, path, service1, service2):

    with app.test_request_context():
        login(self.app, u'test@example.com', u'test')
        response = self.app.get(path, follow_redirects=True)
        self.assertEqual(response.status_code, 200)
        self.assertIn(service1, response.data)
        self.assertIn(service2, response.data)
