/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: Alexander Belchenko
  • Date: 2006-12-20 09:50:52 UTC
  • mfrom: (2203 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2204.
  • Revision ID: bialix@ukr.net-20061220095052-8v7nfgc6x9yjzpbh
merge bzr.dev; fix NEWS

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(), ['-']))