From 7dc25b3d33dc3b298f4e0bbdc38f52865a5722fa Mon Sep 17 00:00:00 2001 From: maxkoryukov Date: Wed, 3 Feb 2016 18:35:16 +0500 Subject: [PATCH] improved testing crutches for python 2.6 --- headphones/unittestcompat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headphones/unittestcompat.py b/headphones/unittestcompat.py index f213295e..266196a7 100644 --- a/headphones/unittestcompat.py +++ b/headphones/unittestcompat.py @@ -34,6 +34,10 @@ class TestCase(TC): def assertIn(self, *args, **kw): return super(TestCase, self).assertIn(*args, **kw) + @_d + def assertRegexpMatches(self, *args, **kw): + return super(TestCase, self).assertRegexpMatches(*args, **kw) + def assertIsNone(self, val, msg=None): if not _dummy: return super(TestCase, self).assertIsNone(val, msg)