Browse Source

Add assertIsInstance to FlaskTestCase on 2.6

This fixes an error in ConfigTestCase.test_custom_config_class
pull/987/head
Daniel Neuhäuser 11 years ago
parent
commit
d43bfb261a
  1. 3
      flask/testsuite/__init__.py

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

Loading…
Cancel
Save