def METHOD_NAME(self):
    """
    Test account is recovered. Send email to learner and then reset password. After
    reset password login to make sure account is recovered
    :return:
    """
    with NamedTemporaryFile() as csv:
        csv = self._write_test_csv(csv, lines=['amy,amy@edx.com,amy@newemail.com\n'])
        call_command("recover_account", f"--csv_file_path={csv.name}")
        assert len(mail.outbox) == 1
    reset_link = re.findall("(http.+pwreset)", mail.outbox[0].body)[0]
    request_params = {'new_password1': 'password1', 'new_password2': 'password1'}
    self.client.get(reset_link)
    resp = self.client.post(reset_link, data=request_params)
    # Verify the response status code is: 302 with password reset because 302 means success
    assert resp.status_code == 302
    assert self.client.login(username=self.user.username, password='password1')
    # try to login with previous password
    assert not self.client.login(username=self.user.username, password='password')