Coverage for tests/test_seeingModelConfig.py : 50%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import unittest
2import lsst.utils.tests
3from lsst.sims.seeingModel import SeeingModelConfig
4from lsst.sims.seeingModel import get_effwavelens
7class TestSeeingModel(unittest.TestCase):
8 def testConfig(self):
9 # Just have to test that there are no errors in normal function.
10 config = SeeingModelConfig()
11 config.validate()
12 config.freeze()
15class TestGetEffWavelens(unittest.TestCase):
16 def test_get_effwavelens(self):
17 # In default setup, should get all filters.
18 filters = ('u', 'g', 'r', 'i', 'z', 'y')
19 photUtils_version, throughputs_version, effwavelens = get_effwavelens()
20 self.assertEqual(len(filters), len(effwavelens))
21 filters = ('u', 'g')
22 photUtils_version, throughputs_version, effwavelens = get_effwavelens(filters)
23 self.assertEqual(len(filters), len(effwavelens))
26class TestMemory(lsst.utils.tests.MemoryTestCase):
27 pass
29def setup_module(module):
30 lsst.utils.tests.init()
32if __name__ == "__main__": 32 ↛ 33line 32 didn't jump to line 33, because the condition on line 32 was never true
33 lsst.utils.tests.init()
34 unittest.main()