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

def _test_path(self, path, *strings):

    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)
        for string in strings:
            self.assertIn(string, response.data)
        headers_keys = [key.lower() for key in response.headers.keys()]
        self.assertIn('etag', headers_keys)
        etag = response.headers.get('etag')
        self.assertNotEqual(etag, '')
        response = self.app.get(path, headers={'If-None-Match': etag}, follow_redirects=True)
        self.assertEqual(response.status_code, 304)
        self.assertEqual(response.data, '')
