/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Robert Collins
  • Date: 2006-08-08 23:19:29 UTC
  • mfrom: (1884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: robertc@robertcollins.net-20060808231929-4e3e298190214b3a
current status

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
        eq = self.assertEquals
16
16
        eq(parse_args(cmd_commit(), ['--help']),
17
17
           ([], {'help': True}))
18
 
        eq(parse_args(cmd_status(), ['--all']),
19
 
           ([], {'all': True}))
20
18
        eq(parse_args(cmd_commit(), ['--message=biter']),
21
19
           ([], {'message': 'biter'}))
22
20
        ## eq(parse_args(cmd_log(),  '-r 500'.split()),
46
44
 
47
45
    def test_unknown_short_opt(self):
48
46
        out, err = self.run_bzr_captured(['help', '-r'], retcode=3)
49
 
        self.assertContainsRe(err, r'unknown short option')
 
47
        self.assertContainsRe(err, r'unknown option')
 
48
 
 
49
    def test_allow_dash(self):
 
50
        """Test that we can pass a plain '-' as an argument."""
 
51
        self.assertEqual((['-'], {}), parse_args(cmd_commit(), ['-']))
50
52
 
51
53
 
52
54
#     >>> parse_args('log -r 500'.split())