
    ea	                     n    d dl Z d dlmZ d dlmZ  ed           G d de j                              ZdS )    N)patch)
SubCommandz%repo_cli.commands.base.SubCommandBasec                   *    e Zd ZdZd Zd Zd Zd ZdS )TestNc                    t          |          | _        d | j        j        _        d | j        j        _        d | j        j        _        d | j        j        _        d | j        j        _        d | j        j        _        d | j        j        _        d | j        j        _	        d | j        j        _
        d | j        j        _        d | j        j        _        d | j        j        _        d | j        j        _        d S )N)r   
subcommandargscreateremovelist
list_fileslist_packagesshowhistorylock	soft_lockunlockfreezeunfreezeselfmock_command_bases     @lib/python3.11/site-packages/repo_cli/tests/unit/test_channel.pysetupz
Test.setup   s    $%677&*#&*#$(!*.'-1*&*#$(!'+$$(!)-&&*#&*#(,%%%    c                 &   d|j         j        _        |                     |           d| j        j        _        | j                                         |j         j                                         |j         j        	                    ddd           d S )N test_channelprivatez"Channel test_channel is now lockedprivacysuccess_message)
apiupdate_channelreturn_valuer   r   r	   r   mainassert_called_onceassert_called_withr   s     r   test_lock_channelzTest.test_lock_channel   s    <>,9

$%%%$2!,??AAA,??@ 	@ 	
 	
 	
 	
 	
r   c                 &   d|j         j        _        |                     |           d| j        j        _        | j                                         |j         j                                         |j         j        	                    ddd           d S )Nr   r   publicz$Channel test_channel is now unlockedr    )
r#   r$   r%   r   r   r	   r   r&   r'   r(   r   s     r   test_unlock_channelzTest.test_unlock_channel(   s    <>,9

$%%%&4#,??AAA,??B 	@ 	
 	
 	
 	
 	
r   c                 &   d|j         j        _        |                     |           d| j        j        _        | j                                         |j         j                                         |j         j        	                    ddd           d S )Nr   r   authenticatedz'Channel test_channel is now soft-lockedr    )
r#   r$   r%   r   r   r	   r   r&   r'   r(   r   s     r   test_soft_lock_channelzTest.test_soft_lock_channel4   s    <>,9

$%%%)7&,??AAA,??#E 	@ 	
 	
 	
 	
 	
r   )__name__
__module____qualname__r   r   r)   r,   r/    r   r   r   r      sW         J- - - 

 

 



 

 



 

 

 

 

r   r   )unittestunittest.mockr   repo_cli.commands.channelr   TestCaser   r3   r   r   <module>r8      s           0 0 0 0 0 0 .//6
 6
 6
 6
 6
8 6
 6
 0/6
 6
 6
r   