From 87d798a4d48135a0d7dae15b97c3ce12abd8ec6a Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 17 May 2013 16:33:36 +0200 Subject: [PATCH] Replaced an antiquated pattern. Thanks Lennart Regebro for pointing it out. --- formtools/tests/wizard/test_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formtools/tests/wizard/test_forms.py b/formtools/tests/wizard/test_forms.py index 7425755..2191782 100644 --- a/formtools/tests/wizard/test_forms.py +++ b/formtools/tests/wizard/test_forms.py @@ -17,7 +17,7 @@ from django.contrib.formtools.wizard.views import (WizardView, class DummyRequest(http.HttpRequest): def __init__(self, POST=None): super(DummyRequest, self).__init__() - self.method = POST and "POST" or "GET" + self.method = "POST" if POST else "GET" if POST is not None: self.POST.update(POST) self.session = {}