def test_lnk(): f = File(contents=open("tests/files/lnk_1.lnk", "rb").read()) assert package(f) == "generic"
def package(self): if self._package is None: self._package = package(self) return self._package
def test_malformed_rtf(): assert package(File("tests/files/maldoc/0882c8")) == "doc" assert package(File("tests/files/maldoc/118368")) == "doc" assert platform(File("tests/files/maldoc/0882c8")) == "windows"