Browse Source

Testing Twilio messaging example

David Leonard 10 years ago
parent
commit
6938aa528f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      hackathon_starter/hackathon/tests.py

+ 4 - 1
hackathon_starter/hackathon/tests.py

@@ -103,6 +103,9 @@ class TwilioTestCase(TestCase):
 		resp = self.client.get('/hackathon/twilio/')
 		self.assertEqual(resp.status_code, 200)
 
-	
+	def testMessage(self):
+		resp = self.client.post('/hackathon/twilio/', {'number': '+13473282978', 'message': 'hello world'})
+		self.assertEqual(resp.status_code, 302)
+