''

def test_correct_answer(self):

    self.rv = self.client.post(self.verify_page_url, data={'0': self.C.human_ip_verification_questions[0][1], self.C.human_ip_verification_identity_record[0][1]: 'Unittest', self.C.human_ip_verification_identity_record[1][1]: '!Password1', 'origin': self.origin}, environ_base=env(ip='1.2.3.4'), headers=headers())
    page_content = self.rv.data.decode()
    self.assertIn('Page    Redirect', page_content, msg=self.dump())
    self.assertIn(self.zmirror.human_ip_verification_success_msg, page_content, msg=self.dump())
    self.assertIn(self.query_string_dict['zhi'], page_content, msg=self.dump())
    self.assertIn(self.query_string_dict['zmirror'], page_content, msg=self.dump())
    self.assertTrue(os.path.exists(zmirror_file('ip_whitelist.log')), msg=self.dump())
    self.assertTrue(os.path.exists(zmirror_file('ip_whitelist.txt')), msg=self.dump())
    with open(zmirror_file('ip_whitelist.txt'), 'r', encoding='utf-8') as fp:
        self.assertIn('1.2.3.4', fp.read(), msg=self.dump())
    with open(zmirror_file('ip_whitelist.log'), 'r', encoding='utf-8') as fp:
        self.assertIn('Unittest', fp.read(), msg=self.dump())
    with open(zmirror_file('ip_whitelist.log'), 'r', encoding='utf-8') as fp:
        self.assertIn('!Password1', fp.read(), msg=self.dump())
    self.assertIn('zmirror_verify=', self.rv.headers.get('Set-Cookie'))
    self.rv2 = self.client.get(self.url('/get'), query_string=self.query_string_dict, environ_base=env(ip='1.2.3.4'), headers=headers())
