mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			344 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			344 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from .helper import assert_image_equal, assert_image_similar, hopper
 | 
						|
 | 
						|
 | 
						|
def check_upload_equal():
 | 
						|
    result = hopper("P").convert("RGB")
 | 
						|
    target = hopper("RGB")
 | 
						|
    assert_image_equal(result, target)
 | 
						|
 | 
						|
 | 
						|
def check_upload_similar():
 | 
						|
    result = hopper("P").convert("RGB")
 | 
						|
    target = hopper("RGB")
 | 
						|
    assert_image_similar(result, target, 0)
 |