mirror of
https://github.com/androguard/androguard.git
synced 2024-11-23 05:00:11 +00:00
23 lines
498 B
Python
23 lines
498 B
Python
import unittest
|
|
|
|
import sys
|
|
|
|
PATH_INSTALL = "./"
|
|
sys.path.append(PATH_INSTALL)
|
|
|
|
from androguard.core.bytecodes import dvm
|
|
from androguard.core.analysis import analysis
|
|
|
|
|
|
class AnalysisTest(unittest.TestCase):
|
|
def testDex(self):
|
|
with open("examples/android/TestsAndroguard/bin/classes.dex",
|
|
"rb") as fd:
|
|
d = dvm.DalvikVMFormat(fd.read())
|
|
dx = analysis.Analysis(d)
|
|
self.assertTrue(dx)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|