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:
jackwardell 2020-07-28 14:23:00 +01:00
parent 93dd1709d0
commit daf9ec790a

View file

@ -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