[test/helper] Do not use deprecated method
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 22 Jul 2014 23:43:46 +0000 (01:43 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 22 Jul 2014 23:43:46 +0000 (01:43 +0200)
test/helper.py

index 84b16f770edb3a41512504bee614ea158f4fcd4f..b7299fb82c2e541fc520ba11c5c52d9edcc972e3 100644 (file)
@@ -137,8 +137,8 @@ def expect_info_dict(self, expected_dict, got_dict):
 
 
 def assertRegexpMatches(self, text, regexp, msg=None):
-    if hasattr(self, 'assertRegexpMatches'):
-        return self.assertRegexpMatches(text, regexp, msg)
+    if hasattr(self, 'assertRegexp'):
+        return self.assertRegexp(text, regexp, msg)
     else:
         m = re.match(regexp, text)
         if not m: