diff --git a/requirements.txt b/requirements.txt index 8aa6911..57a7db9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ coverage==3.5.1 httplib2 lxml cssselect +cherrypy diff --git a/vows/context_vows.py b/vows/context_vows.py index e4ba9e5..e62fc75 100644 --- a/vows/context_vows.py +++ b/vows/context_vows.py @@ -57,6 +57,9 @@ class ContextTest(Vows.Context): def setup(self): self.start_server(port=8085) + + def should_default_to_one_thread(self,topic): + expect(self.server.thr.server._get_numthreads()).to_equal(1) class WithinDjangoHTTPContextTheGetUrlMethod(DjangoHTTPContext): diff --git a/vows/server_vows.py b/vows/server_vows.py index a6f2655..8b3ddbf 100644 --- a/vows/server_vows.py +++ b/vows/server_vows.py @@ -80,3 +80,4 @@ class HttpContextVows(DjangoHTTPContext): def should_be_404(self, (topic, content)): expect(topic.status).to_equal(404) +