Use assert_false where appropriate

This commit is contained in:
Daniel Neuhäuser 2013-05-22 20:17:29 +02:00
parent 9f8a2075c7
commit 62e7275bdf
5 changed files with 15 additions and 12 deletions

View file

@ -152,7 +152,7 @@ class TestToolsTestCase(FlaskTestCase):
self.assert_equal(resp.status_code, 200)
resp = c.get('/other')
self.assert_true(not hasattr(flask.g, 'value'))
self.assert_false(hasattr(flask.g, 'value'))
self.assert_in(b'Internal Server Error', resp.data)
self.assert_equal(resp.status_code, 500)
flask.g.value = 23