~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.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:
169
169
        for a in ('iexplore', 'iexplore.exe'):
170
170
            p = get_app_path(a)
171
171
            d, b = os.path.split(p)
172
 
            self.assertEquals('iexplore.exe', b.lower())
 
172
            self.assertEqual('iexplore.exe', b.lower())
173
173
            self.assertNotEqual('', d)
174
174
 
175
175
    def test_wordpad(self):
180
180
        for a in ('wordpad', 'wordpad.exe'):
181
181
            p = get_app_path(a)
182
182
            d, b = os.path.split(p)
183
 
            self.assertEquals('wordpad.exe', b.lower())
 
183
            self.assertEqual('wordpad.exe', b.lower())
184
184
            self.assertNotEqual('', d)
185
185
 
186
186
    def test_not_existing(self):
187
187
        p = get_app_path('not-existing')
188
 
        self.assertEquals('not-existing', p)
 
188
        self.assertEqual('not-existing', p)
189
189
 
190
190
 
191
191
class TestLocations(TestCase):
242
242
        # version (ie, "C:\DOCUME~1\...").  Its even possible the returned
243
243
        # values will differ only by case - handle these situations as we
244
244
        # come across them.
245
 
        self.assertEquals(p1, p2)
 
245
        self.assertEqual(p1, p2)
246
246
 
247
247
    def test_appdata_not_using_environment(self):
248
248
        # Test that we aren't falling back to the environment