def test_safe_join_toplevel_pardir(self): from flask.helpers import safe_join with self.assert_raises(NotFound): safe_join('/foo', '..')