Esempio n. 1
0
 def _test_bundle_info(self, filename):
     archive = archive_factory(filename)
     assert archive is not None
     assert archive.bundle_info is not None
     assert archive.bundle_info['CFBundleName'] in [
         'IsignTestApp', 'isignTestApp'
     ]
Esempio n. 2
0
 def _test_bundle_info(self, filename):
     archive = archive_factory(filename)
     assert archive is not None
     assert archive.bundle_info is not None
     if PY3:
         assert archive.bundle_info[b'CFBundleName'] == b'isignTestApp'
     else:
         assert archive.bundle_info['CFBundleName'] == 'isignTestApp'
Esempio n. 3
0
 def _test_good(self, filename, klass):
     archive = archive_factory(filename)
     assert archive is not None
     assert archive.__class__ is klass
     assert isinstance(archive, Archive)
Esempio n. 4
0
 def _test_bundle_info(self, filename):
     archive = archive_factory(filename)
     assert archive is not None
     assert archive.bundle_info is not None
     assert archive.bundle_info['CFBundleName'] == 'isignTestApp'
Esempio n. 5
0
 def test_archive_factory_nonapp_simulator_app(self):
     archive = archive_factory(self.TEST_SIMULATOR_APP)
     assert archive is None
Esempio n. 6
0
 def test_archive_factory_nonapp_txt(self):
     archive = archive_factory(self.TEST_NONAPP_TXT)
     assert archive is None
Esempio n. 7
0
 def test_archive_factory_nonapp_ipa(self):
     archive = archive_factory(self.TEST_NONAPP_IPA)
     assert archive is None
Esempio n. 8
0
 def test_archive_factory_nonapp_dir(self):
     archive = archive_factory(self.TEST_NONAPP_DIR)
     assert archive is None
Esempio n. 9
0
 def _test_good(self, filename, klass):
     archive = archive_factory(filename)
     assert archive is not None
     assert archive.__class__ is klass
     assert isinstance(archive, Archive)
Esempio n. 10
0
 def test_archive_factory_nonapp_simulator_app(self):
     archive = archive_factory(self.TEST_SIMULATOR_APP)
     assert archive is None
Esempio n. 11
0
 def test_archive_factory_nonapp_txt(self):
     archive = archive_factory(self.TEST_NONAPP_TXT)
     assert archive is None
Esempio n. 12
0
 def test_archive_factory_nonapp_ipa(self):
     archive = archive_factory(self.TEST_NONAPP_IPA)
     assert archive is None
Esempio n. 13
0
 def test_archive_factory_nonapp_dir(self):
     archive = archive_factory(self.TEST_NONAPP_DIR)
     assert archive is None