Skip to content

Commit

Permalink
Use not deprecated method names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Jan 27, 2018
1 parent 51eedc8 commit 1550d94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zExceptions/tests/test___init__.py
Expand Up @@ -165,17 +165,17 @@ def _callFUT(self, name):
return convertExceptionType(name)

def test_name_in___builtins__(self):
self.failUnless(self._callFUT('SyntaxError') is SyntaxError)
self.assertTrue(self._callFUT('SyntaxError') is SyntaxError)

def test_name_in___builtins___not_an_exception_returns_None(self):
self.failUnless(self._callFUT('unichr') is None)
self.assertTrue(self._callFUT('unichr') is None)

def test_name_in_zExceptions(self):
from zExceptions import Redirect
self.failUnless(self._callFUT('Redirect') is Redirect)
self.assertTrue(self._callFUT('Redirect') is Redirect)

def test_name_in_zExceptions_not_an_exception_returns_None(self):
self.failUnless(self._callFUT('convertExceptionType') is None)
self.assertTrue(self._callFUT('convertExceptionType') is None)


class TestUpgradeException(unittest.TestCase):
Expand Down

0 comments on commit 1550d94

Please sign in to comment.