File: tests.py

package info (click to toggle)
nose 1.3.7-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,900 kB
  • sloc: python: 15,733; makefile: 99; xml: 42; sh: 2
file content (38 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import unittest

def test_a():
    pass

def test_b():
    raise TypeError("I am typeless")

def test_c():
    assert False, "I am contrary"

def test_gen():
    def tryit(i):
        pass
    
    for i in range(0, 4):
        yield tryit, i


class TestCase(unittest.TestCase):
    def test_a(self):
        pass
    def test_b(self):
        pass


class TestCls:
    def test_a(self):
        pass

    def test_gen(self):
        def tryit(i):
            pass
        for i in range(0, 4):
            yield tryit, i

    def test_z(self):
        pass