(self)
| 221 | self.assertEqual(config.Global.bam, "wow") |
| 222 | |
| 223 | def test_add_arguments(self): |
| 224 | cl = MyLoader2() |
| 225 | config = cl.load_config("2 frobble".split()) |
| 226 | self.assertEqual(config.subparser_name, "2") |
| 227 | self.assertEqual(config.y, "frobble") |
| 228 | config = cl.load_config("1 -x frobble".split()) |
| 229 | self.assertEqual(config.subparser_name, "1") |
| 230 | self.assertEqual(config.Global.x, "frobble") |
| 231 | |
| 232 | def test_argv(self): |
| 233 | cl = MyLoader1(argv="-f hi -b 10 -n wow".split()) |
nothing calls this directly
no test coverage detected