def test_apk(self): m = Magic(FILES_PATH + 'test.apk') self.assertEqual(m.get_type(), 'apk')
def test_png(self): m = Magic(FILES_PATH + 'test.png') self.assertEqual(m.get_type(), 'png')
def istext(self, data): m = Magic(FILES_PATH + 'test.txt') self.assertEqual(m.get_type(), 'txt')
def test_zip(self): m = Magic(FILES_PATH + 'test.zip') self.assertEqual(m.get_type(), 'zip')
def test_dex(self): m = Magic(FILES_PATH + 'test.dex') self.assertEqual(m.get_type(), 'dex')
def test_elf(self): m = Magic(FILES_PATH + 'test.so') self.assertEqual(m.get_type(), 'elf')
def test_arsc(self): m = Magic(FILES_PATH + 'test.arsc') self.assertEqual(m.get_type(), 'arsc')
def test_axml(self): m = Magic(FILES_PATH + 'test.axml') self.assertEqual(m.get_type(), 'axml')