added one test to prove we default to one thread
This commit is contained in:
parent
4cd2f6e831
commit
174bd15cb8
3 changed files with 5 additions and 0 deletions
|
@ -4,3 +4,4 @@ coverage==3.5.1
|
|||
httplib2
|
||||
lxml
|
||||
cssselect
|
||||
cherrypy
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -80,3 +80,4 @@ class HttpContextVows(DjangoHTTPContext):
|
|||
def should_be_404(self, (topic, content)):
|
||||
expect(topic.status).to_equal(404)
|
||||
|
||||
|
||||
|
|
Reference in a new issue