~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-01-11 01:43:09 UTC
  • mfrom: (2227.1.1 options)
  • Revision ID: pqm@pqm.ubuntu.com-20070111014309-058f987c23817400
restore Option.short_name() to being callable (mbp, r=john, r=alexander)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
 
66
66
    def test_get_short_name(self):
67
67
        file_opt = option.Option.OPTIONS['file']
68
 
        self.assertEquals(file_opt.short_name, 'F')
 
68
        self.assertEquals(file_opt.short_name(), 'F')
69
69
        force_opt = option.Option.OPTIONS['force']
70
 
        self.assertEquals(force_opt.short_name, None)
 
70
        self.assertEquals(force_opt.short_name(), None)
71
71
 
72
72
    def test_allow_dash(self):
73
73
        """Test that we can pass a plain '-' as an argument."""