Skip to content

Commit

Permalink
Tests for cropping
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedroho committed Feb 22, 2015
1 parent 4a774c9 commit 828b23e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/test_pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def test_resize(self):
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)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_wand.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def test_resize(self):
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)
Expand Down

0 comments on commit 828b23e

Please sign in to comment.