diff --git a/Home.md b/Home.md index 66c000c..db780f7 100644 --- a/Home.md +++ b/Home.md @@ -59,26 +59,28 @@ from django_pyvows import DjangoContext, DjangoHTTPContext @Vows.batch class ContextTest(DjangoContext): - class TheDefaultSetting(DjangoHTTPContext): + class InDebugMode(DjangoHTTPContext): def setup(self): + self.settings["DEBUG"] = True self.start_server(port=8081) def topic(self): return self.get("/homepage/") def should_be_ok(self, topic): - expect(topic.code).to_equal("OK") + expect(topic.msg).to_equal("OK") - class TheOtherSetting(DjangoHTTPContext): + class NotInDebugMode(DjangoHTTPContext): def setup(self): + self.settings["DEBUG"] = False self.start_server(port=8082) def topic(self): return self.get("/homepage/") def should_be_ok(self, topic): - expect(topic.code).to_equal("OK") + expect(topic.msg).to_equal("OK") ``` \ No newline at end of file