<s> import pycurl <EOL> import unittest <EOL> import nose . plugins . skip <EOL> from . import appmanager <EOL> from . import util <EOL> setup_module , teardown_module = appmanager . setup ( ( '<STR_LIT>' , <NUM_LIT> ) ) <EOL> class ResolveTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . curl = pycurl . Curl ( ) <EOL> def tearDown ( self ) : <EOL> self . curl . close ( ) <EOL> def test_resolve ( self ) : <EOL> if util . pycurl_version_less_than ( <NUM_LIT:7> , <NUM_LIT> , <NUM_LIT:3> ) and not hasattr ( pycurl , '<STR_LIT>' ) : <EOL> raise nose . plugins . skip . SkipTest ( '<STR_LIT>' ) <EOL> self . curl . setopt ( pycurl . URL , '<STR_LIT>' ) <EOL> self . curl . setopt ( pycurl . RESOLVE , [ '<STR_LIT>' ] ) <EOL> self . curl . perform ( ) <EOL> self . assertEqual ( <NUM_LIT:200> , self . curl . getinfo ( pycurl . RESPONSE_CODE ) ) </s>
