mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			466 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			466 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from PIL import Image
 | |
| 
 | |
| from .helper import assert_image_equal_tofile, assert_image_similar
 | |
| 
 | |
| 
 | |
| def test_load_raw():
 | |
|     with Image.open("Tests/images/ftex_uncompressed.ftu") as im:
 | |
|         assert_image_equal_tofile(im, "Tests/images/ftex_uncompressed.png")
 | |
| 
 | |
| 
 | |
| def test_load_dxt1():
 | |
|     with Image.open("Tests/images/ftex_dxt1.ftc") as im:
 | |
|         with Image.open("Tests/images/ftex_dxt1.png") as target:
 | |
|             assert_image_similar(im, target.convert("RGBA"), 15)
 |