~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Martin Pool
  • Date: 2006-12-15 08:36:50 UTC
  • mto: (2193.3.1 short-options)
  • mto: This revision was merged to the branch mainline in revision 2203.
  • Revision ID: mbp@sourcefrog.net-20061215083650-14cbsfiijfq3kdf9
remove global registration of short options

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        out, err = self.run_bzr_captured(['help', '-r'], retcode=3)
64
64
        self.assertContainsRe(err, r'no such option')
65
65
 
 
66
    def test_get_short_name(self):
 
67
        file_opt = option.Option.OPTIONS['file']
 
68
        self.assertEquals(file_opt.short_name, 'F')
 
69
        force_opt = option.Option.OPTIONS['force']
 
70
        self.assertEquals(force_opt.short_name, None)
 
71
 
66
72
    def test_allow_dash(self):
67
73
        """Test that we can pass a plain '-' as an argument."""
68
74
        self.assertEqual((['-'], {}), parse_args(cmd_commit(), ['-']))