Use assert_true instead of assert_
assert_ is deprecated which causes annoying warnings
This commit is contained in:
parent
5b89355b1c
commit
239780be28
12 changed files with 147 additions and 144 deletions
|
|
@ -34,7 +34,7 @@ class FlaskSubclassingTestCase(FlaskTestCase):
|
|||
|
||||
rv = app.test_client().get('/')
|
||||
self.assert_equal(rv.status_code, 500)
|
||||
self.assert_(b'Internal Server Error' in rv.data)
|
||||
self.assert_true(b'Internal Server Error' in rv.data)
|
||||
|
||||
err = out.getvalue()
|
||||
self.assert_equal(err, '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue