Skip to content

Commit

Permalink
Added test case for Image.percent_escape() method
Browse files Browse the repository at this point in the history
  • Loading branch information
emcconville committed Jul 10, 2019
1 parent 4d35805 commit e8bd0c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/image_methods_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e8bd0c9

Please sign in to comment.