[Python-modules-commits] [willow] 10/11: Tests for cropping

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Tue Dec 5 23:12:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to tag v0.1.1
in repository willow.

commit 828b23eaf84c5f554aaa18e6636854fc2d952fac
Author: Karl Hobley <karlhobley10 at gmail.com>
Date:   Fri Feb 20 14:28:09 2015 +0000

    Tests for cropping
---
 tests/test_pillow.py | 6 +++---
 tests/test_wand.py   | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/test_pillow.py b/tests/test_pillow.py
index dece0be..76c4fc5 100644
--- a/tests/test_pillow.py
+++ b/tests/test_pillow.py
@@ -17,9 +17,9 @@ class TestPillowOperations(unittest2.TestCase):
         pillow_backend.resize(self.backend, 100, 75)
         self.assertEqual(self.backend.image.size, (100, 75))
 
-    def test_resize(self):
-        pillow_backend.resize(self.backend, 100, 75)
-        self.assertEqual(self.backend.image.size, (100, 75))
+    def test_crop(self):
+        pillow_backend.crop(self.backend, 10, 10, 100, 100)
+        self.assertEqual(self.backend.image.size, (90, 90))
 
     def test_has_alpha(self):
         has_alpha = pillow_backend.has_alpha(self.backend)
diff --git a/tests/test_wand.py b/tests/test_wand.py
index 6499ce0..6128d31 100644
--- a/tests/test_wand.py
+++ b/tests/test_wand.py
@@ -17,9 +17,9 @@ class TestWandOperations(unittest2.TestCase):
         wand_backend.resize(self.backend, 100, 75)
         self.assertEqual(self.backend.image.size, (100, 75))
 
-    def test_resize(self):
-        wand_backend.resize(self.backend, 100, 75)
-        self.assertEqual(self.backend.image.size, (100, 75))
+    def test_crop(self):
+        wand_backend.crop(self.backend, 10, 10, 100, 100)
+        self.assertEqual(self.backend.image.size, (90, 90))
 
     def test_has_alpha(self):
         has_alpha = wand_backend.has_alpha(self.backend)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/willow.git



More information about the Python-modules-commits mailing list