Commits

Robert Brewer committed 3a83515

New test for directory in staticfilter.

  • Participants
  • Parent commits 9b34f3d
  • Branches cherrypy-2.1

Comments (0)

Files changed (1)

cherrypy/test/test_static_filter.py

         #   into \r\n on Windows when extracting the CherryPy tarball so
         #   we just check the content
         self.assertMatchesBody('^Dummy stylesheet')
+        
+        # Check a directory (should currently fail--no provision for it)
+        ignore = helper.webtest.ignored_exceptions
+        ignore.append(IOError)
+        try:
+            self.getPage("/static/")
+            self.assertErrorPage(500)
+        finally:
+            ignore.pop()
 
 if __name__ == "__main__":
     helper.testmain()