Ejemplo n.º 1
0
    def test_merge_single_root(self):
        report = self.get_success_report()

        report_root = ElementTree.fromstring(report)
        result_root = merge([report_root])
        write_output(result_root, self.stream)
        self.assertEqual(report, self.stream.getvalue())
Ejemplo n.º 2
0
    def test_merge_single_root(self):
        report = self.get_success_report()

        report_root = ElementTree.fromstring(report)
        result_root = merge([report_root])
        write_output(result_root, self.stream)
        self.assertEqual(report, self.stream.getvalue())
Ejemplo n.º 3
0
    def test_merge_overwrite_error_with_success(self):
        success_report = self.get_success_report()
        error_report = self.get_error_report()

        success_report_root = ElementTree.fromstring(success_report)
        error_report_root = ElementTree.fromstring(error_report)
        result_root = merge([error_report_root, success_report_root])
        write_output(result_root, self.stream)
        self.assertEqual(success_report, self.stream.getvalue())
Ejemplo n.º 4
0
    def test_merge_with_skipped_test_root(self):
        success_report = self.get_success_report()
        skip_report = self.get_skip_report()

        success_report_root = ElementTree.fromstring(success_report)
        skip_report_root = ElementTree.fromstring(skip_report)
        result_root = merge([success_report_root, skip_report_root])
        write_output(result_root, self.stream)
        self.assertEqual(skip_report, self.stream.getvalue())
Ejemplo n.º 5
0
    def test_merge_overwrite_error_with_success(self):
        success_report = self.get_success_report()
        error_report = self.get_error_report()

        success_report_root = ElementTree.fromstring(success_report)
        error_report_root = ElementTree.fromstring(error_report)
        result_root = merge([error_report_root, success_report_root])
        write_output(result_root, self.stream)
        self.assertEqual(success_report, self.stream.getvalue())
Ejemplo n.º 6
0
    def test_merge_with_skipped_test_root(self):
        success_report = self.get_success_report()
        skip_report = self.get_skip_report()

        success_report_root = ElementTree.fromstring(success_report)
        skip_report_root = ElementTree.fromstring(skip_report)
        result_root = merge([success_report_root, skip_report_root])
        write_output(result_root, self.stream)
        self.assertEqual(skip_report, self.stream.getvalue())