@mock.patch("main.urlfetch")
def test_url_fetch(urlfetch_mock, app):
    urlfetch_mock.fetch = mock.Mock(
        return_value=mock.Mock(content="I'm Feeling Lucky",
                               status_code=200))
    response = app.get('/url_fetch')
    assert response.status_int == 200
    assert response.body in "I'm Feeling Lucky"
dataset/ETHPy150Open GoogleCloudPlatform/python-docs-samples/appengine/urlfetch/main_test.py/test_url_fetch/swapped operands of `in`