# HG changeset patch # User Thomas De Schampheleire # Date 2016-05-14 21:00:02 # Node ID 062b4418ca9daf50c6afb8182a5e100bda802ad0 # Parent 151459ea3bd1b97fc7855443120ff8a14f6fd1ec pytest migration: remove temporary assert stubs diff --git a/kallithea/tests/__init__.py b/kallithea/tests/__init__.py --- a/kallithea/tests/__init__.py +++ b/kallithea/tests/__init__.py @@ -251,27 +251,3 @@ class TestControllerPytest(BaseTestContr init_stack(self.wsgiapp.config) self.init() return self.app - - # transitional implementations of unittest.TestCase asserts - # Users of these should be converted to pytest's single 'assert' call - def assertEqual(self, first, second, msg=None): - assert first == second - def assertNotEqual(self, first, second, msg=None): - assert first != second - def assertTrue(self, expr, msg=None): - assert bool(expr) is True - def assertFalse(self, expr, msg=None): - assert bool(expr) is False - def assertIn(self, first, second, msg=None): - assert first in second - def assertNotIn(self, first, second, msg=None): - assert first not in second - def assertSetEqual(self, first, second, msg=None): - assert first == second - def assertListEqual(self, first, second, msg=None): - assert first == second - def assertDictEqual(self, first, second, msg=None): - assert first == second - def assertRaises(self, exception, method, *args, **kwargs): - with pytest.raises(exception): - method(*args, **kwargs)