python_testing
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| python_testing [2019/12/11 21:51] – created jrseti | python_testing [2019/12/21 18:52] (current) – jrseti | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| python setup.py test | python setup.py test | ||
| + | |||
| + | ====Example==== | ||
| + | |||
| + | flux_densities/ | ||
| + | |||
| + | < | ||
| + | from unittest import TestCase | ||
| + | |||
| + | import flux_densities as fd | ||
| + | |||
| + | class TestFluxDensities(TestCase): | ||
| + | |||
| + | def test_souurce_list(self): | ||
| + | source_list = fd.get_sources() | ||
| + | assert(len(source_list) == 20) | ||
| + | </ | ||
python_testing.1576101093.txt.gz · Last modified: 2019/12/11 21:51 by jrseti