예제 #1
0
 def test_say_with_text(self):
     self.assertEquals(say(self.request, text='hi').status_code, 200)
예제 #2
0
 def test_say_with_text(self):
     request = self.factory.post(self.say_uri, HTTP_X_TWILIO_SIGNATURE=self.signature)
     self.assertEquals(say(request, text='hi').status_code, 200)
예제 #3
0
파일: views.py 프로젝트: satkum/remembro
def show_meow(request, meow_id):
    if request.method == "GET" or request.method == "POST":
        meow = get_object_or_404(Meow, pk=meow_id)
        return say(request,meow.text);
    raise Http404
예제 #4
0
 def test_say_with_text(self):
     request = self.factory.post(self.say_uri, HTTP_X_TWILIO_SIGNATURE=self.signature)
     self.assertEquals(say(request, text="hi").status_code, 200)
예제 #5
0
 def test_say_with_text(self):
     self.assertEquals(
         say(self.request, text='hi').status_code,
         200
     )