a word that exactly matches a positional key uses that key's text
(self)
| 98 | self.assertMatchSingle(cmd, s.find_man_page("withmultipos")[0], matchedresult) |
| 99 | |
| 100 | def test_positional_name_match(self): |
| 101 | """a word that exactly matches a positional key uses that key's text""" |
| 102 | cmd = "withmultipos DEST" |
| 103 | matchedresult = [ |
| 104 | MR(0, 12, "withmultipos synopsis", "withmultipos"), |
| 105 | MR(13, 17, "destination path", "DEST"), |
| 106 | ] |
| 107 | |
| 108 | self.assertMatchSingle(cmd, s.find_man_page("withmultipos")[0], matchedresult) |
| 109 | |
| 110 | def test_prefixed_positional_out_of_order(self): |
| 111 | """a prefixed token claims its positional regardless of position, and |
nothing calls this directly
no test coverage detected