swapping self.assert_equal for assert
self.assert_equal is not in a class and is ambiguous. Beginners might copy and paste this example and not understand it.
This commit is contained in:
parent
93dd1709d0
commit
daf9ec790a
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ And then to use it::
|
|||
with app.test_client() as c:
|
||||
resp = c.get('/users/me')
|
||||
data = json.loads(resp.data)
|
||||
self.assert_equal(data['username'], my_user.username)
|
||||
assert data['username'] == my_user.username
|
||||
|
||||
|
||||
Keeping the Context Around
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue