PageRenderTime 50ms CodeModel.GetById 44ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/functional_tests/doc_tests/test_selector_plugin/support/tests/math/basic.py

https://bitbucket.org/jpellerin/nose/
Python | 17 lines | 11 code | 6 blank | 0 comment | 0 complexity | d38d2e59921ed4b488d34f9d934321a0 MD5 | raw file
 1import testlib
 2from mypackage import math
 3
 4
 5class TestBasicMath(testlib.Base):
 6
 7    def test_add(self):
 8        self.assertEqual(math.add(1, 2), 3)
 9
10    def test_sub(self):
11        self.assertEqual(math.sub(3, 1), 2)
12
13
14class TestHelperClass:
15    def __init__(self):
16        raise Exception(
17            "This test helper class should not be collected")