androguard/tests/test_analysis.py
Sebastian Bachmann 1ce2a7f1ae auto format code
2017-06-14 12:04:10 +02:00

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()