1. Mikhail Korobov
  2. django-webtest

Commits

Carl Meyer  committed 7204c25

Add url property to DjangoWebtestResponse so assertRedirects works in 1.6.

  • Participants
  • Parent commits eaecd95
  • Branches default

Comments (0)

Files changed (1)

File django_webtest/response.py

View file
         return self.body
 
     @property
+    def url(self):
+        return self['location']
+
+    @property
     def client(self):
         client = Client()
         client.cookies = SimpleCookie()