Merge branch 'master' of https://github.com/Xion/flask into Xion-master

Conflicts:
	flask/testsuite/config.py
This commit is contained in:
Daniel Neuhäuser 2014-02-20 19:12:56 +01:00
commit 66e51d5be7
3 changed files with 23 additions and 1 deletions

View file

@ -157,6 +157,9 @@ class FlaskTestCase(unittest.TestCase):
def assert_not_in(self, x, y):
self.assertNotIn(x, y)
def assert_isinstance(self, obj, cls):
self.assertIsInstance(obj, cls)
if sys.version_info[:2] == (2, 6):
def assertIn(self, x, y):
assert x in y, "%r unexpectedly not in %r" % (x, y)