Added Media, Picture and Text file parsers

This commit is contained in:
simon987
2018-03-23 14:02:56 -04:00
parent b94fce4e0b
commit a8b5e0b76e
19 changed files with 613 additions and 25 deletions

View File

@@ -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):