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 (19 lines) | stat: -rw-r--r-- 410 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
class Test1(object):
    def test_nested_generator(self):
        def func():
            pass
        yield func,

    def test_nested_generator_mult(self):
        def f2(a):
            pass
        for b in range(1, 4):
            yield f2, b

    def try_something(self, a):
        pass

    def test_normal_generator(self):
        yield self.try_something, 1
        yield 'try_something', 2