Imported Upstream version 1.1.2
[platform/upstream/python-nose.git] / functional_tests / support / xunit / test_xunit_as_suite.py
1 # -*- coding: utf-8 -*-
2 import sys
3 from nose.exc import SkipTest
4 import unittest
5
6 class TestForXunit(unittest.TestCase):
7
8     def test_success(self):
9         pass
10
11     def test_fail(self):
12         self.assertEqual("this","that")
13
14     def test_error(self):
15         raise TypeError("oops, wrong type")
16     
17     def test_non_ascii_error(self):
18         raise Exception(u"日本")
19     
20     def test_output(self):
21         sys.stdout.write("test-generated output\n")
22
23     def test_skip(self):
24         raise SkipTest("skipit")