/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
- import testlib
- from mypackage import math
- class TestBasicMath(testlib.Base):
- def test_add(self):
- self.assertEqual(math.add(1, 2), 3)
- def test_sub(self):
- self.assertEqual(math.sub(3, 1), 2)
- class TestHelperClass:
- def __init__(self):
- raise Exception(
- "This test helper class should not be collected")