def METHOD_NAME(self, template_filename, expected_template_filename):
    template_path = self.temp_dir.joinpath(template_filename)
    command_list = self.get_command_list(template_path=template_path, region=self.region_name)
    result = run_command(command_list)
    expected_msg = 'The following metadata of application "{}" has been updated:'.format(self.application_id)
    result_msg = result.stdout.decode("utf-8")
    self.assertIn(expected_msg, result_msg)
    app_metadata_text = self.temp_dir.joinpath(expected_template_filename).read_text()
    app_metadata = json.loads(app_metadata_text)
    self.assert_metadata_details(app_metadata, result_msg)