wrote failing unit test for setting thred count on start_server
This commit is contained in:
parent
174bd15cb8
commit
c8f24334d0
1 changed files with 12 additions and 0 deletions
|
@ -103,3 +103,15 @@ class ContextTest(Vows.Context):
|
||||||
def the_get_url_method_should_return_a_well_formed_url(self, topic):
|
def the_get_url_method_should_return_a_well_formed_url(self, topic):
|
||||||
expect(topic).to_equal('http://127.0.0.1:8085/')
|
expect(topic).to_equal('http://127.0.0.1:8085/')
|
||||||
|
|
||||||
|
class WithinAMultiThreadedServer(DjangoHTTPContext):
|
||||||
|
|
||||||
|
def setup(self):
|
||||||
|
self.start_server(threads=5)
|
||||||
|
|
||||||
|
def topic(self):
|
||||||
|
return self.server
|
||||||
|
|
||||||
|
def should_default_to_one_thread(self,topic):
|
||||||
|
expect(topic.thr.server._get_numthreads()).to_equal(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue