Skip to content

Commit

Permalink
100% test coverage for wsgi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 30, 2017
1 parent 26344b4 commit d04a010
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/zope/app/server/tests/test_wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
from zope.interface.verify import verifyObject
from zope.app.server.servertype import IServerType
from zope.app.server.wsgi import http, pmhttp
from zope.server.http.wsgihttpserver import WSGIHTTPServer


class TestWSGIServerType(unittest.TestCase):

def test(self):
verifyObject(IServerType, http)
verifyObject(IServerType, pmhttp)

def test_create(self):
dispatcher = 'my task dispatcher'
db = 'my database'
server = http.create("HTTP", dispatcher, db)
self.assertIsInstance(server, WSGIHTTPServer)
1 change: 0 additions & 1 deletion src/zope/app/server/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
##############################################################################
"""WSGI-compliant HTTP server setup.
"""
__docformat__ = "reStructuredText"

import zope.interface
from zope.server.http.commonaccesslogger import CommonAccessLogger
Expand Down

0 comments on commit d04a010

Please sign in to comment.