ó
O'—^c           @  s6   d  d l  m Z d  d l Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   unicode_literalsNt   TestCaseUtilsc           B  s   e  Z d  „  Z RS(   c         C  sH   d j  | | ƒ } t j | j d ƒ ƒ } i d | j d ƒ d 6} | S(   uc   
        Return a dict containg the correct headers to set to make HTTP Basic Auth request
        u   {0}:{1}u   utf-8u   Basic u   HTTP_AUTHORIZATION(   t   formatt   base64t	   b64encodet   encodet   decode(   t   selft   usert   passwordt	   user_passt   auth_stringt   auth_headers(    (    sB   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/tests/test_utils.pyt   get_basic_auth_header   s
    (   t   __name__t
   __module__R   (    (    (    sB   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/tests/test_utils.pyR      s   (   t
   __future__R    R   t   objectR   (    (    (    sB   /tmp/pip-unpacked-wheel-ndW12l/oauth2_provider/tests/test_utils.pyt   <module>   s   