def test_lnk_windows(): f = File(contents=open("tests/files/lnk_1.lnk", "rb").read()) assert platform(f) == "windows"
def platform(self): if self._platform is None: self._platform = platform(self) return self._platform
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"