U
    jRf                     @   st   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ G d	d
 d
eZdS )    )TestCase)User)settings)Client)G)twilio_client)
Credential)discover_twilio_credentialsc                   @   s$   e Zd Zdd Zdd Zdd ZdS )TwilioClientTestCasec                 C   s   |  tt d S N)ZassertIsInstancer   r   self r   @/tmp/pip-unpacked-wheel-bwz75sck/test_project/test_app/client.pytest_twilio_client_exists   s    z.TwilioClientTestCase.test_twilio_client_existsc                 C   s   |  tjtjtjf d S r   )assertEqualr   authr   ZTWILIO_ACCOUNT_SIDZTWILIO_AUTH_TOKENr   r   r   r   #test_twilio_client_sets_credentials   s    
z8TwilioClientTestCase.test_twilio_client_sets_credentialsc                 C   s^   t tddd| _t tddd| jd| _t| jd}| |d	 | jj | |d
 | jj d S )Ntestpass)usernamepasswordzTest CredentialsZAAAZBBB)nameaccount_sid
auth_tokenuser)r   r      )	r   r   r   r   credentialsr	   r   r   r   )r   r   r   r   r   )test_twilio_client_with_credentials_model   s    z>TwilioClientTestCase.test_twilio_client_with_credentials_modelN)__name__
__module____qualname__r   r   r   r   r   r   r   r
      s   r
   N)Zdjango.testr   Zdjango.contrib.auth.modelsr   Zdjango.confr   Ztwilio.restr   Zdjango_dynamic_fixturer   Zdjango_twilio.clientr   Zdjango_twilio.modelsr   Zdjango_twilio.utilsr	   r
   r   r   r   r   <module>   s   