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 : /lib/python3/dist-packages/twisted/mail/test/__pycache__/ |
Upload File : |
o �b � @ sz d Z ddlmZmZ ddlmZ ddlmZmZ ddl m Z ddlmZ G dd� de�Z G d d � d �ZG dd� de�Zd S )z Tests for L{twisted.mail.tap}. � )�defer� endpoints)� protocols)�Options�makeService)� UsageError)�TestCasec @ sh e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� ZdS )�OptionsTestszK Tests for the command line option parser used for I{twistd mail}. c C sF | � � | _t| jd��}|�d� W d � d S 1 sw Y d S )N�wzsomeuser: differentuser )�mktemp� aliasFilename�open�write)�self� aliasFile� r �@/usr/lib/python3/dist-packages/twisted/mail/test/test_options.py�setUp s "�zOptionsTests.setUpc C s | � tt� jd| jg� dS )zi Test that adding an aliases(5) file before adding a domain raises a UsageError. � --aliasesN)�assertRaisesr r �parseOptionsr �r r r r �testAliasesWithoutDomain s �z%OptionsTests.testAliasesWithoutDomainc C s t � �ddd| jg� dS )z� Test that adding an aliases(5) file to an IAliasableDomain at least doesn't raise an unhandled exception. z--maildirdbmdomainzexample.com=example.comr N)r r r r r r r �testAliases"