From d43bfb261a0cb562fdfec6d94768c80d95844578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Neuha=CC=88user?= Date: Thu, 20 Feb 2014 19:17:59 +0100 Subject: [PATCH] Add assertIsInstance to FlaskTestCase on 2.6 This fixes an error in ConfigTestCase.test_custom_config_class --- flask/testsuite/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flask/testsuite/__init__.py b/flask/testsuite/__init__.py index 8a6d1477..d0d62f29 100644 --- a/flask/testsuite/__init__.py +++ b/flask/testsuite/__init__.py @@ -167,6 +167,9 @@ class FlaskTestCase(unittest.TestCase): def assertNotIn(self, x, y): assert x not in y, "%r unexpectedly in %r" % (x, y) + def assertIsInstance(self, x, y): + assert isinstance(x, y), "not isinstance(%r, %r)" % (x, y) + class _ExceptionCatcher(object):