Skip to content
Myr

swapping self.assert_equal for assert

Before adoption: this commit came in with the history the project adopted, so no landing records it.

self.assert_equal is not in a class and is ambiguous. Beginners might copy and paste this example and not understand it.

authored by jackwardell · committed by jackwardell · parent 93dd170 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/testing.rst+1 added-1 removed
310 unmodified lines
311 with user_set(app, my_user):312 with app.test_client() as c:313 resp = c.get('/users/me')314 data = json.loads(resp.data)315 self.assert_equal(data['username'], my_user.username)315 assert data['username'] == my_user.username316317318Keeping the Context Around319--------------------------
139 unmodified lines