mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-20 02:25:31 +01:00
improved testing crutches for python 2.6
This commit is contained in:
@@ -34,6 +34,12 @@ class TestCase(TC):
|
||||
def assertIn(self, *args, **kw):
|
||||
return super(TestCase, self).assertIn(*args, **kw)
|
||||
|
||||
def assertIsNone(self, val, msg=None):
|
||||
if not _dummy:
|
||||
return super(TestCase, self).assertIsNone(val, msg)
|
||||
tst = val is None
|
||||
return super(TestCase, self).assertTrue(tst, msg)
|
||||
|
||||
def assertIsNotNone(self, val, msg=None):
|
||||
if not _dummy:
|
||||
return super(TestCase, self).assertIsNotNone(val, msg)
|
||||
|
||||
Reference in New Issue
Block a user