Modify test for PNG image with alpha
This commit is contained in:
		
							parent
							
								
									2a47b3f1a1
								
							
						
					
					
						commit
						73a8569d21
					
				@ -181,13 +181,14 @@ class TestParser(DirectoriesMixin, TestCase):
 | 
			
		||||
 | 
			
		||||
        self.assertContainsStrings(parser.get_text(), ["This is a test document."])
 | 
			
		||||
 | 
			
		||||
    def test_image_simple_alpha_fail(self):
 | 
			
		||||
    def test_image_simple_alpha(self):
 | 
			
		||||
        parser = RasterisedDocumentParser(None)
 | 
			
		||||
 | 
			
		||||
        def f():
 | 
			
		||||
            parser.parse(os.path.join(self.SAMPLE_FILES, "simple-alpha.png"), "image/png")
 | 
			
		||||
        parser.parse(os.path.join(self.SAMPLE_FILES, "simple-alpha.png"), "image/png")
 | 
			
		||||
 | 
			
		||||
        self.assertRaises(ParseError, f)
 | 
			
		||||
        self.assertTrue(os.path.isfile(parser.archive_path))
 | 
			
		||||
 | 
			
		||||
        self.assertContainsStrings(parser.get_text(), ["This is a test document."])
 | 
			
		||||
 | 
			
		||||
    def test_image_calc_a4_dpi(self):
 | 
			
		||||
        parser = RasterisedDocumentParser(None)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user