def test_setup_default_config_no_permission(self): with temporary_file() as temp: os.chmod(temp.name, 0o400) with self.assertRaises(TaskError): SignApkTask.setup_default_config(temp.name)
def test_setup_default_config_no_permission(self): with temporary_file() as temp: os.chmod(temp.name, 0o400) with self.assertRaises(TaskError): SignApkTask.setup_default_config(temp.name)
def test_setup_default_config(self): with temporary_dir() as temp: default_config = os.path.join(temp, "default_config.ini") SignApkTask.setup_default_config(default_config) self.assertTrue(os.path.isfile(default_config))
def test_setup_default_config(self): with temporary_dir() as temp: default_config = os.path.join(temp, 'default_config.ini') SignApkTask.setup_default_config(default_config) self.assertTrue(os.path.isfile(default_config))