I'll admit this is a beginner question which is my current state of knowledge about unit testing.
I see that numpy.testing is being used, is there a sort answer/reason as to why it is being used rather that the built in python testing?What is the chain of events (in brief) when "$ python setup.py test" is run from the command line?I was testing the SimpleTables using __main__ and a simple print(a==b) statement. I would like to test the output from SimpleTables to be sure that asI muck with it I don't break it. Also I think there is some value in making sure that the results from a model continue to provide the same summary output.Should I be using numpy.testing or the python unit testing?
Each NumPy module exposes test in its namespace to run all tests for it. For example, to run all tests for numpy.lib:
>>> np.lib.test()
Examples
>>> result = np.lib.test() Running unit tests for numpy.lib ... Ran 976 tests in 3.933s
Thanks that just what I needed. I see this option assert_string_equalIs there an reason, to or not to done be able to call the test directly on the module, ie regression.test()Reference LinkEach NumPy module exposes test in its namespace to run all tests for it. For example, to run all tests for numpy.lib:
>>> np.lib.test()Examples
>>> result = np.lib.test() Running unit tests for numpy.lib ... Ran 976 tests in 3.933s