/usr/lib/python2.6/site-packages/ndg/httpsclient/test
Edit: /usr/lib/python2.6/site-packages/ndg/httpsclient/test/test_utils.pyc (2868B)
Ñò
˜KVc @ s¼ d Z d Z d Z d Z d Z d Z d Z d d k Z d d k Z d d k l
Z
d d
k l Z d d k
l Z l Z l Z l Z d e i f d
„ ƒ YZ e d j o e i ƒ n d S( s† unit tests module for ndg.httpsclient.utils module
PyOpenSSL utility to make a httplib-like interface suitable for use with
urllib2
s P J Kershaw (STFC)s 06/01/12s2 (C) 2012 Science and Technology Facilities Councils- BSD - see LICENSE file in top-level directorys Philip.Kershaw@stfc.ac.uks $Id$iÿÿÿÿN( t SSL( t Constants( t
Configurationt fetch_from_urlt open_urlt _should_use_proxyt TestUtilsModulec B s2 e Z d Z d „ Z d „ Z d „ Z d „ Z RS( s! Test ndg.httpsclient.utils modulec C sB t t i t i ƒ t ƒ } | i | i ƒ | i | i t ƒ d S( N( R R t Contextt TLSv1_METHODt Truet
assertTruet ssl_contextt assertEqualt debug( t selft config( ( sC /usr/lib/python2.6/site-packages/ndg/httpsclient/test/test_utils.pyt test01_configuration s c C s> t t i t i ƒ t ƒ } t t i | ƒ } | i | ƒ d S( N( R R R R R R R t TEST_URIR
( R R t res( ( sC /usr/lib/python2.6/site-packages/ndg/httpsclient/test/test_utils.pyt test02_fetch_from_url s c C sO t t i t i ƒ t ƒ } t t i | ƒ } | i | d d d t i ƒ d S( Ni iÈ s open_url for %r failed( R R R R R R R R R ( R R R ( ( sC /usr/lib/python2.6/site-packages/ndg/httpsclient/test/test_utils.pyt test03_open_url# s c C sœ d t i j o t i d } t i d =n d } | i t t i ƒ d ƒ d t i d <| i t t i ƒ d ƒ | d j o | t i d