def test_conda_app_image(self): filename = data_path('test-app-package-icon-0.1-0.tar.bz2') with open(filename, 'rb') as fd: package_data, version_data, file_data = conda.inspect_conda_package(filename, fd) self.assertEqual(app_expected_package_data, package_data) self.assertEqual(app_expected_version_data.pop('icon'), version_data.pop('icon')) self.assertEqual(app_expected_version_data, version_data)
def test_conda(self): filename = data_path('conda_gc_test-2.2.1-py27_3.tar.bz2') with open(filename, 'rb') as fd: package_data, version_data, file_data = conda.inspect_conda_package(filename, fd) self.assertEqual(expected_package_data, package_data) self.assertEqual(expected_version_data_221, version_data) self.assertEqual(expected_file_data_221, file_data)