File: attrib_example.py

package info (click to toggle)
nose2 0.15.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,912 kB
  • sloc: python: 10,721; makefile: 126
file content (31 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
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
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"]