~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-13 18:38:58 UTC
  • mfrom: (1863 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: john@arbash-meinel.com-20060713183858-ebf4aa1f9ef8bb6e
[merge] bzr.dev 1863

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        out, err = self.run_bzr_captured(['help', '-r'], retcode=3)
47
47
        self.assertContainsRe(err, r'unknown option')
48
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(), ['-']))
 
52
 
49
53
 
50
54
#     >>> parse_args('log -r 500'.split())
51
55
#     (['log'], {'revision': [<RevisionSpec_int 500>]})