mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Rotate with fill color unit test
check if hopper image equals hopper45withfill after rotate
This commit is contained in:
parent
a42beccee7
commit
bea25dba30
|
@ -97,6 +97,11 @@ class TestImageRotate(PillowTestCase):
|
|||
self.rotate(im, im.mode, 45, translate=(im.size[0]/2, 0))
|
||||
self.rotate(im, im.mode, 45, center=(0, 0), translate=(im.size[0]/2, 0))
|
||||
|
||||
def test_rotate_with_fill(self):
|
||||
im = hopper()
|
||||
target = Image.open('Tests/images/hopper45withfill.png')
|
||||
self.assert_image_equal(im.rotate(45, fillcolor='white'), target)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user