Coverage for tests/test_helpers.py : 44%

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
file_path = os.path.join(os.path.dirname(__file__), "dummy.conf") conf_dict = read_conf_file(file_path) self.assertEqual(len(conf_dict), 3) self.assertEqual(conf_dict["section1"]["par1"], 15.0) self.assertEqual(conf_dict["section1"]["par2"], "test") self.assertListEqual(conf_dict["section1"]["par3"], ["good", "to", "go"]) self.assertListEqual(conf_dict["section2"]["par4"], [7.0, 8.0, 9.0]) self.assertFalse(conf_dict["section2"]["par5"]) self.assertEqual(conf_dict["section3"]["par6"], 0.5) self.assertListEqual(conf_dict["section3"]["par7"], [("test1", 1.0, 30.0), ("test2", 4.0, 50.0)])
lsst.utils.tests.init()
lsst.utils.tests.init() unittest.main() |