File: test.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 (16 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class base:
    @classmethod
    def setup_class(cls):
        cls.inited = 1
    @classmethod
    def teardown_class(cls):
        cls.inited = 0
    def test1(self):
        assert self.inited
    def test2(self):
        assert self.inited

class testa(base):
    pass
class testb(base):
    pass