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' ]
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'
def _test_good(self, filename, klass): archive = archive_factory(filename) assert archive is not None assert archive.__class__ is klass assert isinstance(archive, Archive)
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'
def test_archive_factory_nonapp_simulator_app(self): archive = archive_factory(self.TEST_SIMULATOR_APP) assert archive is None
def test_archive_factory_nonapp_txt(self): archive = archive_factory(self.TEST_NONAPP_TXT) assert archive is None
def test_archive_factory_nonapp_ipa(self): archive = archive_factory(self.TEST_NONAPP_IPA) assert archive is None
def test_archive_factory_nonapp_dir(self): archive = archive_factory(self.TEST_NONAPP_DIR) assert archive is None