示例#1
0
 def test_apk(self):
     m = Magic(FILES_PATH + 'test.apk')
     self.assertEqual(m.get_type(), 'apk')
示例#2
0
 def test_png(self):
     m = Magic(FILES_PATH + 'test.png')
     self.assertEqual(m.get_type(), 'png')
示例#3
0
 def istext(self, data):
     m = Magic(FILES_PATH + 'test.txt')
     self.assertEqual(m.get_type(), 'txt')
示例#4
0
 def test_zip(self):
     m = Magic(FILES_PATH + 'test.zip')
     self.assertEqual(m.get_type(), 'zip')
示例#5
0
 def test_dex(self):
     m = Magic(FILES_PATH + 'test.dex')
     self.assertEqual(m.get_type(), 'dex')
示例#6
0
 def test_elf(self):
     m = Magic(FILES_PATH + 'test.so')
     self.assertEqual(m.get_type(), 'elf')
示例#7
0
 def test_arsc(self):
     m = Magic(FILES_PATH + 'test.arsc')
     self.assertEqual(m.get_type(), 'arsc')
示例#8
0
 def test_axml(self):
     m = Magic(FILES_PATH + 'test.axml')
     self.assertEqual(m.get_type(), 'axml')