mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Added tests
This commit is contained in:
parent
ddc83fd8a7
commit
2787b9b991
BIN
Tests/images/hopper_I.png
Normal file
BIN
Tests/images/hopper_I.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
|
@ -233,3 +233,11 @@ class TestImageConvert(PillowTestCase):
|
|||
# Assert
|
||||
# No change
|
||||
self.assert_image_equal(converted_im, im)
|
||||
|
||||
def test_i_to_l(self):
|
||||
im = Image.open("Tests/images/hopper_I.png").convert("L")
|
||||
self.assert_image_similar(hopper("L"), im, 0.02)
|
||||
|
||||
def test_i_to_rgb(self):
|
||||
im = Image.open("Tests/images/hopper_I.png").convert("RGB")
|
||||
self.assert_image_similar(hopper("L").convert("RGB"), im, 0.05)
|
||||
|
|
Loading…
Reference in New Issue
Block a user