forked from orbit-oss/flask
Use assert_false where appropriate
This commit is contained in:
parent
9f8a2075c7
commit
62e7275bdf
5 changed files with 15 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue