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

Changeset 759

Show
Ignore:
Timestamp:
10/29/05 13:39:40
Author:
fumanchu
Message:

New test for directory in staticfilter.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.1/cherrypy/test/test_static_filter.py

    r527 r759  
    8686        #   we just check the content 
    8787        self.assertMatchesBody('^Dummy stylesheet') 
     88         
     89        # Check a directory (should currently fail--no provision for it) 
     90        ignore = helper.webtest.ignored_exceptions 
     91        ignore.append(IOError) 
     92        try: 
     93            self.getPage("/static/") 
     94            self.assertErrorPage(500) 
     95        finally: 
     96            ignore.pop() 
    8897 
    8998if __name__ == "__main__": 
  • trunk/cherrypy/test/test_static_filter.py

    r527 r759  
    8686        #   we just check the content 
    8787        self.assertMatchesBody('^Dummy stylesheet') 
     88         
     89        # Check a directory (should currently fail--no provision for it) 
     90        ignore = helper.webtest.ignored_exceptions 
     91        ignore.append(IOError) 
     92        try: 
     93            self.getPage("/static/") 
     94            self.assertErrorPage(500) 
     95        finally: 
     96            ignore.pop() 
    8897 
    8998if __name__ == "__main__": 

Hosted by WebFaction

Log in as guest/cpguest to create tickets