Permalink
Browse files

Adding the thanks message on success of bulkpoll and breaking the build

  • Loading branch information...
1 parent 8e21f28 commit 713485d42850b00cc2865a0abf25372ff5cf6195 Diptanu Choudhury committed Apr 2, 2010
Showing with 10 additions and 2 deletions.
  1. +2 −1 apps/bulkpoll/app.py
  2. +8 −1 apps/iraq/tests/integration_tests.py
View
@@ -13,7 +13,8 @@ def handle (self, message):
if message.text.lower().find("bulk") > -1:
message_processor = BulkMessageProcessor(message.text)
answers = message_processor.parse_and_create_user(message.connection, message.text)
- message_processor.save_user_and_responses(answers)
+ response = message_processor.save_user_and_responses(answers)
+ message.respond(response)
return True
def cleanup (self, message):
@@ -23,7 +23,14 @@ class TestIntegration(TestScript):
00919980131127 > c
00919980131127 < Your responses have been recorded. Thank you for participating in the poll.
"""
-
+
+ testBulkPoll = """
+ 00919980131127 > register poll 2 1
+ 00919980131127 < Thank you, to initiate the poll sms the keyword Poll with your age and gender
+ 00919980131127 > bulk 12 f a a b c d
+ 00919980131127 < Thanksdds
+ """
+
testHappyPathScenarios_Arabic = u"""
00919980131127 > تسجيل التصويت ٤ ٢
00919980131127 < شكراً لكم, للشروع في التصويت عن طريق الرسائل القصيرة الرجاء إرسال التصويت العمر الجنس

0 comments on commit 713485d

Please sign in to comment.