changeset 5916:062b4418ca9d

pytest migration: remove temporary assert stubs
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Sat, 14 May 2016 21:00:02 +0200
parents 151459ea3bd1
children 68ac6055d4b2
files kallithea/tests/__init__.py
diffstat 1 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/__init__.py	Sat May 14 20:54:12 2016 +0200
+++ b/kallithea/tests/__init__.py	Sat May 14 21:00:02 2016 +0200
@@ -251,27 +251,3 @@
         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)