added one test to prove we default to one thread

This commit is contained in:
Jeremy Johnson 2013-08-15 16:27:04 +08:00
parent 4cd2f6e831
commit 174bd15cb8
3 changed files with 5 additions and 0 deletions

View file

@ -4,3 +4,4 @@ coverage==3.5.1
httplib2
lxml
cssselect
cherrypy

View file

@ -58,6 +58,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):
def topic(self):

View file

@ -80,3 +80,4 @@ class HttpContextVows(DjangoHTTPContext):
def should_be_404(self, (topic, content)):
expect(topic.status).to_equal(404)