forked from orbit-oss/flask
Add assertIsInstance to FlaskTestCase on 2.6
This fixes an error in ConfigTestCase.test_custom_config_class
This commit is contained in:
parent
3f8e29b12c
commit
d43bfb261a
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue