~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testoptions.py

- more refactoring and tests of commandline

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
        ## eq(parse_args(cmd_log(),  '-r 500'.split()),
21
21
        ##   ([], {'revision': RevisionSpec_int(500)}))
22
22
 
 
23
    def test_no_more_opts(self):
 
24
        """Terminated options"""
 
25
        self.assertEquals(parse_args(cmd_commit(), ['--', '-file-with-dashes']),
 
26
                          (['-file-with-dashes'], {}))
 
27
 
23
28
    def test_option_help(self):
24
29
        """Options have help strings."""
25
30
        out, err = self.run_bzr_captured(['commit', '--help'])