'Helper function.
Test response for 404 status code. Also test if response body
contains \'does no exist\' string.'

def _test_path(self, path):

    with app.test_request_context():
        login(self.app, u'test@example.com', u'test')
        response = self.app.get(path)
        self.assertEqual(response.status_code, 404)
        self.assertIn('does    not    exist', response.data)
