From e8bd0c9eb38af13f192ab01826c92c29a911e043 Mon Sep 17 00:00:00 2001 From: "E. McConville" Date: Wed, 10 Jul 2019 12:07:41 -0500 Subject: [PATCH] Added test case for Image.percent_escape() method --- tests/image_methods_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/image_methods_test.py b/tests/image_methods_test.py index edf76bad..e51d139c 100644 --- a/tests/image_methods_test.py +++ b/tests/image_methods_test.py @@ -1442,6 +1442,11 @@ def test_optimize_transparency(fx_asset): 'present on system. ' + repr(e)) +def test_percent_escape(fx_asset): + with Image(filename=str(fx_asset.join('sasha.jpg'))) as img: + assert 'sasha.jpg 204x247' == img.percent_escape('%f %wx%h') + + def test_polaroid(fx_asset): # For testing polaroid method, we can't really identify if somethings # has changed correctly.