@@ -104,7 +104,7 @@ def test_good_benchmark_change_beats_bad_average_trend(self):
104104 self .make_result (x , rev = s1 , benchmark = b1 )
105105 self .make_result (changes [- 2 ] * .97 , rev = s1 , benchmark = b1 )
106106 rep = self .make_report (s1 )
107- self .assertEquals ('green' , rep .colorcode )
107+ self .assertEqual ('green' , rep .colorcode )
108108 self .assertIn ('b1' , rep .summary )
109109
110110 def test_good_average_change_beats_bad_average_trend (self ):
@@ -116,7 +116,7 @@ def test_good_average_change_beats_bad_average_trend(self):
116116 self .make_result (x , rev = s1 , benchmark = b1 )
117117 self .make_result (changes [- 2 ] * .92 , rev = s1 , benchmark = b1 )
118118 rep = self .make_report (s1 )
119- self .assertEquals ('green' , rep .colorcode )
119+ self .assertEqual ('green' , rep .colorcode )
120120 self .assertIn ('Average' , rep .summary )
121121
122122 def test_good_change_beats_good_trend (self ):
@@ -156,7 +156,7 @@ def test_bad_change_beats_good_trend(self):
156156 rep = self .make_report (s1 )
157157 self .assertIn ('b1' , rep .summary )
158158 self .assertNotIn ('trend' , rep .summary )
159- self .assertEquals ('red' , rep .colorcode )
159+ self .assertEqual ('red' , rep .colorcode )
160160
161161 def test_bad_beats_good_change (self ):
162162 b1 = self .make_bench ('b1' )
@@ -184,7 +184,7 @@ def test_bigger_bad_beats_smaller_bad(self):
184184
185185 rep = self .make_report (s2 )
186186 self .assertIn ('b1' , rep .summary )
187- self .assertEquals ('red' , rep .colorcode )
187+ self .assertEqual ('red' , rep .colorcode )
188188
189189 def test_multiple_quantities (self ):
190190 b1 = self .make_bench ('b1' , quantity = 'Space' , units = 'bytes' )
@@ -195,8 +195,8 @@ def test_multiple_quantities(self):
195195 self .make_result (1.5 , rev = s2 , benchmark = b1 )
196196
197197 rep = self .make_report (s2 )
198- self .assertRegexpMatches (rep .summary , '[sS]pace' )
199- self .assertEquals ('red' , rep .colorcode )
198+ self .assertRegex (rep .summary , '[sS]pace' )
199+ self .assertEqual ('red' , rep .colorcode )
200200
201201 def make_result (self , value , rev = None , benchmark = None ):
202202 from uuid import uuid4
@@ -280,18 +280,18 @@ def test_github_browsing_url(self):
280280
281281 # It should work with https:// as well as git:// urls
282282 self .github_project .save ()
283- self .assertEquals (self .github_project .commit_browsing_url ,
283+ self .assertEqual (self .github_project .commit_browsing_url ,
284284 'https://github.com/tobami/codespeed.git/'
285285 'commit/{commitid}' )
286286
287287 self .github_project .repo_path = 'git://github.com/tobami/codespeed.git'
288288 self .github_project .save ()
289- self .assertEquals (self .github_project .commit_browsing_url ,
289+ self .assertEqual (self .github_project .commit_browsing_url ,
290290 'https://github.com/tobami/codespeed.git/'
291291 'commit/{commitid}' )
292292
293293 # If filled in, commit browsing url should not change
294294 self .github_project .commit_browsing_url = 'https://example.com/{commitid}'
295295 self .github_project .save ()
296- self .assertEquals (self .github_project .commit_browsing_url ,
296+ self .assertEqual (self .github_project .commit_browsing_url ,
297297 'https://example.com/{commitid}' )
0 commit comments