mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			491 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			491 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from PIL import GbrImagePlugin, Image
 | |
| 
 | |
| from .helper import PillowTestCase, assert_image_equal
 | |
| 
 | |
| 
 | |
| class TestFileGbr(PillowTestCase):
 | |
|     def test_invalid_file(self):
 | |
|         invalid_file = "Tests/images/flower.jpg"
 | |
| 
 | |
|         self.assertRaises(SyntaxError, GbrImagePlugin.GbrImageFile, invalid_file)
 | |
| 
 | |
|     def test_gbr_file(self):
 | |
|         with Image.open("Tests/images/gbr.gbr") as im:
 | |
|             with Image.open("Tests/images/gbr.png") as target:
 | |
|                 assert_image_equal(target, im)
 |