~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-01 18:06:32 UTC
  • mto: (6614.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6615.
  • Revision ID: v.ladeuil+lp@free.fr-20160201180632-xgp7k7z5bda9ap1w
Fix assertEquals being deprecated by using assertEqual.

Show diffs side-by-side

added added

removed removed

Lines of Context:
388
388
    def test_short_name(self):
389
389
        registry = controldir.ControlDirFormatRegistry()
390
390
        opt = option.RegistryOption('format', help='', registry=registry)
391
 
        self.assertEquals(None, opt.short_name())
 
391
        self.assertEqual(None, opt.short_name())
392
392
        opt = option.RegistryOption('format', short_name='F', help='',
393
393
            registry=registry)
394
 
        self.assertEquals('F', opt.short_name())
 
394
        self.assertEqual('F', opt.short_name())
395
395
 
396
396
    def test_option_custom_help(self):
397
397
        the_opt = option.Option.OPTIONS['help']