示例#1
0
def test_lnk():
    f = File(contents=open("tests/files/lnk_1.lnk", "rb").read())
    assert package(f) == "generic"
示例#2
0
 def package(self):
     if self._package is None:
         self._package = package(self)
     return self._package
示例#3
0
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"