/functional_tests/support/xunit/test_xunit_as_suite.py
https://bitbucket.org/jpellerin/nose/ · Python · 24 lines · 16 code · 7 blank · 1 comment · 0 complexity · cc19a607d676069ae0a2d8b9f77202a3 MD5 · raw file
- # -*- coding: utf-8 -*-
- import sys
- from nose.exc import SkipTest
- import unittest
- class TestForXunit(unittest.TestCase):
- def test_success(self):
- pass
- def test_fail(self):
- self.assertEqual("this","that")
- def test_error(self):
- raise TypeError("oops, wrong type")
-
- def test_non_ascii_error(self):
- raise Exception(u"ćĽćŹ")
-
- def test_output(self):
- sys.stdout.write("test-generated output\n")
- def test_skip(self):
- raise SkipTest("skipit")