import unittest

class SomeTests(unittest.TestCase):

    def test_ok(self):
        pass

    def test_typeerr(self):
        raise TypeError("oops")

    def test_failed(self):
        print("Hello stdout")
        assert False, "I failed"

    def test_skippy(self):
        raise unittest.SkipTest("I wanted to skip")


def test_func():
    assert 1 == 1


def test_gen():
    def check(a, b):
        assert a == b
    for i in range(0, 5):
        yield check, (i, i,)
test_gen.testGenerator = True


def test_gen_nose_style():
    def check(a, b):
        assert a == b
    for i in range(0, 5):
        yield check, i, i


did_setup = False
def setup():
    global did_setup
    did_setup = True


def test_fixt():
    assert did_setup
test_fixt.setup = setup


@@ -10,16 +10,17 @@
 ittest%0A%0A
+%0A
 class So
@@ -317,16 +317,253 @@
 skip%22)%0A%0A
+    def test_gen_method(self):%0A        def check(x):%0A            assert x == 1%0A        yield check, 1%0A        yield check, 2%0A%0A    def test_params_method(self, a):%0A        self.assertEqual(a, 1)%0A    test_params_method.paramList = (1, 2)%0A%0A
 %0Adef tes
@@ -1000,8 +1000,210 @@
  setup%0A%0A
+%0Adef test_params_func(a):%0A    assert a == 1%0Atest_params_func.paramList = (1, 2)%0A%0A%0Adef test_params_func_multi_arg(a, b):%0A    assert a == b%0Atest_params_func_multi_arg.paramList = ((1, 1), (1, 2), (2, 2))%0A

Add param test cases to func test target project