diff --git a/docs/testing.rst b/docs/testing.rst index 6910aa48..942a4e4d 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -316,7 +316,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