def METHOD_NAME(self, url):
    password = "foobar"
    requests.get(url)
    requests.post(url, data={"password": password})
    data = parse_qs(HTTPretty.last_request.body)
    self.assertEqual(data["password"], password)
    self.strategy.session_set("password", data["password"])
    return password