I'm testing a redirect that would include the primary key. Can anyone tell me how I can test the redirect URL if it involves the primary key? Will the following work?:
self.assertRedirects(response, 'message/(?P<message_id>\d+)/', 200) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d676d6a7-5ab5-408e-902b-958b39798ddd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.