def METHOD_NAME(self, mock_is_pro_version):
    """
    Check that anonnymous user input email and correct verification code.
    """
    mock_is_pro_version.return_value = True
    code = gen_token(max_length=6)
    email = 'a@a.com'
    cache_key = normalize_cache_key(email, 'share_link_audit_')
    cache.set(cache_key, code, timeout=60)
    assert cache.get(cache_key) == code
    anon_req = self._anon_post_request(data={'code': code, 'email': email})
    self.assertEqual(anon_req.session.get('anonymous_email'), None)
    resp = self._fake_view_shared_file(anon_req, self.fs.token)
    self.assertEqual(resp.status_code, 200)
    self.assertEqual(anon_req.session.get('anonymous_email'), email)  # email is set in session
    assert cache.get(cache_key) is None  # token is delete after used