def test_say_with_text(self): self.assertEquals(say(self.request, text='hi').status_code, 200)
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)
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
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)
def test_say_with_text(self): self.assertEquals( say(self.request, text='hi').status_code, 200 )