(self)
| 383 | self.assertEqual(groups[1].suggestions[0].source, "ubuntu/26.04/2/dup.2.gz") |
| 384 | |
| 385 | def test_arguments(self): |
| 386 | cmd = "withargs -x -b freearg freearg" |
| 387 | matchedresult = [ |
| 388 | MR(0, 8, "withargs synopsis", "withargs"), |
| 389 | # tokens that look like options are still unknown |
| 390 | MR(9, 11, None, "-x"), |
| 391 | MR(12, 22, "-b <arg> desc", "-b freearg"), |
| 392 | MR(23, 30, "FILE argument", "freearg"), |
| 393 | ] |
| 394 | |
| 395 | self.assertMatchSingle(cmd, s.find_man_page("withargs")[0], matchedresult) |
| 396 | |
| 397 | def test_arg_is_dash(self): |
| 398 | cmd = "bar -b - -a -" |
nothing calls this directly
no test coverage detected