Lines Matching refs:decode

58 def decode(var, encoding):  function
67 ret = var.decode(encoding)
132 test_suite_attributes["name"] = decode(self.name, encoding)
138 test_suite_attributes["hostname"] = decode(self.hostname, encoding)
140 test_suite_attributes["id"] = decode(self.id, encoding)
142 test_suite_attributes["package"] = decode(self.package, encoding)
144 test_suite_attributes["timestamp"] = decode(self.timestamp, encoding)
146 test_suite_attributes["file"] = decode(self.file, encoding)
148 test_suite_attributes["log"] = decode(self.log, encoding)
150 test_suite_attributes["url"] = decode(self.url, encoding)
158 attrs = {"name": decode(k, encoding), "value": decode(v, encoding)}
164 stdout_element.text = decode(self.stdout, encoding)
169 stderr_element.text = decode(self.stderr, encoding)
174 test_case_attributes["name"] = decode(case.name, encoding)
181 test_case_attributes["timestamp"] = decode(case.timestamp, encoding)
183 test_case_attributes["classname"] = decode(case.classname, encoding)
185 test_case_attributes["status"] = decode(case.status, encoding)
187 test_case_attributes["class"] = decode(case.category, encoding)
189 test_case_attributes["file"] = decode(case.file, encoding)
191 test_case_attributes["line"] = decode(case.line, encoding)
193 test_case_attributes["log"] = decode(case.log, encoding)
195 test_case_attributes["url"] = decode(case.url, encoding)
204 attrs["message"] = decode(failure["message"], encoding)
206 attrs["type"] = decode(failure["type"], encoding)
209 failure_element.text = decode(failure["output"], encoding)
217 attrs["message"] = decode(error["message"], encoding)
219 attrs["type"] = decode(error["type"], encoding)
222 error_element.text = decode(error["output"], encoding)
229 attrs["message"] = decode(skipped["message"], encoding)
232 skipped_element.text = decode(skipped["output"], encoding)
238 stdout_element.text = decode(case.stdout, encoding)
244 stderr_element.text = decode(case.stderr, encoding)
301 xml_string = _clean_illegal_xml_chars(xml_string.decode(encoding or "utf-8"))
311 xml_string = xml_string.decode(encoding)