Beispiel #1
0
 def test_app(self):
     with open(self.TEST_APP_CODESIG_STR, 'r') as f:
         expected_codesig_str = f.read().strip()
     bundle = isign.bundle.App(self.TEST_APP)
     executable = Executable(bundle.get_executable_path())
     arch = executable.arches[0]
     codesig_str = str(arch['cmds']['LC_CODE_SIGNATURE'])
     self.assertEquals(expected_codesig_str, codesig_str)
Beispiel #2
0
 def test_app(self):
     with open(self.TEST_APP_CODESIG_STR, 'r') as f:
         expected_codesig_str = f.read().strip()
     bundle = isign.bundle.App(self.TEST_APP)
     executable = Executable(bundle, bundle.get_executable_path())
     arch = executable.arches[0]
     codesig_str = str(arch['cmds']['LC_CODE_SIGNATURE'])
     self.assertEquals(expected_codesig_str, codesig_str)