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):