File: attrib_example.py

package info (click to toggle)
nose2 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,752 kB
  • sloc: python: 9,471; makefile: 127
file content (28 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (4)
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
import unittest


class Test(unittest.TestCase):

    def test_fast(self):
        pass
    test_fast.fast = 1
    test_fast.layer = 2
    test_fast.flags = ['blue', 'green']

    def test_faster(self):
        pass
    test_faster.fast = 1
    test_faster.layer = 1
    test_faster.flags = ['red', 'green']

    def test_slow(self):
        pass
    test_slow.fast = 0
    test_slow.slow = 1
    test_slow.layer = 2

    def test_slower(self):
        pass
    test_slower.slow = 1
    test_slower.layer = 3
    test_slower.flags = ['blue', 'red']