'Generate TWO different response bodies that are the result of failed
logins.
The first result is for logins with filled user and password fields;
the second one is for a filled user and a blank passwd.'

def _id_failed_login_page(self, mutant):

    login_failed_result_list = []
    form = mutant.get_dc()
    self._true_extra_fields(form)
    (user_token, pass_token) = form.get_login_tokens()
    tests = [(rand_alnum(8), rand_alnum(8)), (rand_alnum(8), '')]
    for (user, passwd) in tests:
        if (user_token is not None):
            form.set_login_username(user)
        form.set_login_password(passwd)
        response = self._uri_opener.send_mutant(mutant, grep=False)
        body = self.clean_body(response, user, passwd)
        login_failed_result_list.append(body)
    tests = [(rand_alnum(8), rand_alnum(8)), (rand_alnum(8), '')]
    for (user, passwd) in tests:
        if (user_token is not None):
            form.set_login_username(user)
        form.set_login_password(passwd)
        response = self._uri_opener.send_mutant(mutant, grep=False)
        body = self.clean_body(response, user, passwd)
        if (not self._matches_failed_login(body, login_failed_result_list)):
            msg = 'Failed    to    generate    a    response    that    matches    the    failed    login    page.'
            raise BaseFrameworkException(msg)
    return login_failed_result_list
