Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1570

Show
Ignore:
Timestamp:
12/28/06 13:59:24
Author:
fumanchu
Message:

Skip a couple tests if server is not HTTP/1.1.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/test_core.py

    r1569 r1570  
    599599        self.assertStatus(200) 
    600600        self.assertBody("(['http://127.0.0.1:%s/'], 302)" % self.PORT) 
    601         self.getPage("/redirect/stringify", protocol="HTTP/1.1") 
    602         self.assertStatus(200) 
    603         self.assertBody("(['http://127.0.0.1:%s/'], 303)" % self.PORT) 
     601         
     602        if cherrypy.config.get('server.socket_protocol') == 'HTTP/1.1': 
     603            self.getPage("/redirect/stringify", protocol="HTTP/1.1") 
     604            self.assertStatus(200) 
     605            self.assertBody("(['http://127.0.0.1:%s/'], 303)" % self.PORT) 
    604606     
    605607    def testFlatten(self): 
     
    658660     
    659661    def testRanges(self): 
     662        if cherrypy.config.get('server.socket_protocol') != 'HTTP/1.1': 
     663            print "skipped ", 
     664            return 
     665         
    660666        self.getPage("/ranges/get_ranges?bytes=3-6") 
    661667        self.assertBody("[(3, 7)]") 

Hosted by WebFaction

Log in as guest/cpguest to create tickets