Add assertIsInstance to FlaskTestCase on 2.6

This fixes an error in ConfigTestCase.test_custom_config_class
This commit is contained in:
Daniel Neuhäuser 2014-02-20 19:17:59 +01:00
parent 3f8e29b12c
commit d43bfb261a

View file

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