3
# Created by: Pearu Peterson, October 2003
4
# Adjusted to numpy.distutils: Pearu Peterson, October 2005
7
First ensure that scipy core modules are installed.
12
python tests/test_foo.py [-l<int>] [-v<int>]
14
Run tests if scipy is installed:
15
python -c 'import scipy;scipy.exmplpackage.test(level=<int>,verbosity=<int>)'
19
from numpy.test.testing import *
22
from exmplpackage.foo import *
25
class test_foo_bar(NumpyTestCase):
27
def check_simple(self, level=1):
28
assert exmplpackage_foo_bar()=='Hello from exmplpackage_foo_bar'
30
class test_foo_gun(NumpyTestCase):
32
def check_simple(self, level=1):
33
assert foo_gun()=='Hello from foo_gun'
35
if __name__ == "__main__":