mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-13 15:19:05 +00:00
Added Media, Picture and Text file parsers
This commit is contained in:
@@ -16,7 +16,7 @@ class GenericFileParserTest(TestCase):
|
||||
test_file.close()
|
||||
os.utime("test_parse.txt", (1330123456, 1330654321))
|
||||
|
||||
self.parser = GenericFileParser([Md5CheckSumCalculator()], ExtensionMimeGuesser())
|
||||
self.parser = GenericFileParser([Md5CheckSumCalculator()])
|
||||
|
||||
def tearDown(self):
|
||||
os.remove("test_parse.txt")
|
||||
@@ -42,11 +42,6 @@ class GenericFileParserTest(TestCase):
|
||||
|
||||
self.assertEqual(result["mtime"], 1330654321)
|
||||
|
||||
def test_mime(self):
|
||||
|
||||
result = self.parser.parse("test_parse.txt")
|
||||
self.assertEqual(result["mime"], "text/plain")
|
||||
|
||||
|
||||
class Md5CheckSumCalculatorTest(TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user