示例#1
0
 def test_obfuscation_remaining_fields_per_obfuscator(
         self, tmp_demo_apk_v10_original_path: str):
     obfuscation = Obfuscation(tmp_demo_apk_v10_original_path)
     obfuscators_adding_fields = 3
     obfuscation.obfuscators_adding_fields = obfuscators_adding_fields
     result = obfuscation.get_remaining_fields_per_obfuscator()
     assert isinstance(result, int)
     assert (result == obfuscation._get_remaining_fields() //
             obfuscators_adding_fields)
示例#2
0
 def test_obfuscation_get_remaining_fields(
         self, tmp_demo_apk_v10_original_path: str):
     obfuscation = Obfuscation(tmp_demo_apk_v10_original_path)
     remaining_fields = obfuscation._get_remaining_fields()
     assert isinstance(remaining_fields, int)
     assert remaining_fields > 63500