PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/functional_tests/support/issue408/test.py

https://bitbucket.org/jpellerin/nose/
Python | 16 lines | 15 code | 1 blank | 0 comment | 0 complexity | 0dd4c3a88549a99ff21fdfdc1495761c MD5 | raw file
 1class base:
 2    @classmethod
 3    def setup_class(cls):
 4        cls.inited = 1
 5    @classmethod
 6    def teardown_class(cls):
 7        cls.inited = 0
 8    def test1(self):
 9        assert self.inited
10    def test2(self):
11        assert self.inited
12
13class testa(base):
14    pass
15class testb(base):
16    pass