:Oc @ s d Z d Z d Z d Z d Z d Z d Z d d l m Z d d l Z d d
l
m Z d d l m
Z
d d l m Z d
e j f d YZ e d k r e j n d S( s unit tests module for ndg.httpsclient.urllib2_build_opener 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( t URLErrorN( t SSL( t Constants( t build_openert Urllib2TestCasec B s2 e Z d Z d Z d Z d Z d Z RS( s$ Unit tests for urllib2 functionalityc C s t } | j | d S( N( R t assert_( t selft opener( ( sE /usr/lib/python2.7/site-packages/ndg/httpsclient/test/test_urllib2.pyt test01_urllib2_build_opener s c C s; t } | j t j } | j | d | j GHd S( Ns res = %s( R t openR t TEST_URIR t read( R R t res( ( sE /usr/lib/python2.7/site-packages/ndg/httpsclient/test/test_urllib2.pyt test02_open s
c C s&