mirror of
				https://github.com/simon987/Simple-Incremental-Search-Tool.git
				synced 2025-10-31 07:26:53 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			379 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			379 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from unittest import TestCase
 | |
| from parsing import PdfFileParser
 | |
| 
 | |
| 
 | |
| class PdfParserTest(TestCase):
 | |
| 
 | |
|     def test_parse_content(self):
 | |
| 
 | |
|         parser = PdfFileParser([], 12488, "test_files/")
 | |
| 
 | |
|         info = parser.parse("test_files/pdf1.pdf")
 | |
| 
 | |
|         self.assertEqual(len(info["content"]), 12488)
 | |
|         self.assertTrue(info["content"].startswith("Rabies\n03/11/2011\nRabies"))
 |