Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/mail/test/__pycache__/ |
Upload File : |
o �bTU � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlZ d dl mZmZm Z mZmZ d dlmZmZmZ d dlmZ d dlmZmZ d d lmZ d d lmZ d dlmZ z d dl m!Z!m"Z" W n e#ym dZ!dZ"Y nw G d d� de�Z$ddddddd�Z%d0dd�Z&dd� Z'G dd� de�Z(G dd� d�Z)G dd� d�Z*G dd� de�Z+G dd � d e�Z,G d!d"� d"e�Z-G d#d$� d$e�Z.G d%d&� d&�Z/G d'd(� d(ej0�Z1ee! d)�ee �2ed� d)�G d*d+� d+e���Z3G d,d-� d-e/e�Z4G d.d/� d/e�Z5dS )1� N)�List)�skipIf)�directlyProvides)�defer�error� interfaces�protocol�reactor)�AdvancedPOP3Client� InsecureAuthenticationDisallowed�ServerErrorResponse)�pop3testserver)�basic�loopback)�log)�StringTransport)�TestCase)�ClientTLSContext�ServerTLSContextc @ � e Zd Zdd� ZdS )�#StringTransportWithConnectionLosingc C s | j �t�� � d S �N)r �connectionLostr �ConnectionDone��self� r �C/usr/lib/python3/dist-packages/twisted/mail/test/test_pop3client.py�loseConnection! � z2StringTransportWithConnectionLosing.loseConnectionN)�__name__� __module__�__qualname__r r r r r r � r s 180s LOGIN)s TOPs LOGIN-DELAYs UIDL� STLSs USERs SASLTc C s8 t � }t|_t� }||_|�|� | r|�d� ||fS )Ns +OK Hello! )� POP3Client�capCache� _capCacher r �makeConnection�dataReceived)�greet�p�tr r r �setUp/ s r- c C s | fdd�S )Nc S s |� S r r )�result�fr r r �<lambda>A s zstrip.<locals>.<lambda>r )r/ r r r �strip@ s r1 c @ st e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�POP3ClientLoginTestsc sD t dd�\}}d|_|�dd�}|�d� � �|t��� fdd��S ) NF�r* T� username� passwords -ERR Offline for maintenance c � � � | jd d�S )Nr s Offline for maintenance��assertEqual�args��excr r r r0 K � z;POP3ClientLoginTests.testNegativeGreeting.<locals>.<lambda>)r- �allowInsecureLogin�loginr) � assertFailurer �addCallback�r r+ r, �dr r r �testNegativeGreetingE s �z)POP3ClientLoginTests.testNegativeGreetingc C �<