(self)
| 292 | self.assertEqual(Unicode().from_string(config.D.C.value), "hi there") |
| 293 | |
| 294 | def test_expanduser(self): |
| 295 | cl = self.klass(log=log) |
| 296 | argv = ["--a=~/1/2/3", "--b=~", "--c=~/", '--d="~/"'] |
| 297 | config = cl.load_config(argv) |
| 298 | u = Unicode() |
| 299 | self.assertEqual(u.from_string(config.a), os.path.expanduser("~/1/2/3")) |
| 300 | self.assertEqual(u.from_string(config.b), os.path.expanduser("~")) |
| 301 | self.assertEqual(u.from_string(config.c), os.path.expanduser("~/")) |
| 302 | self.assertEqual(u.from_string(config.d), "~/") |
| 303 | |
| 304 | def test_extra_args(self): |
| 305 | cl = self.klass(log=log) |
nothing calls this directly
no test coverage detected