From 41fc3a92fa095b991578c079af260b4b96982d12 Mon Sep 17 00:00:00 2001 From: rafaelcaricio Date: Tue, 23 Aug 2011 11:51:27 -0700 Subject: [PATCH] Updated Django pyvows (markdown) --- Home.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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