Re: Expected URL with primary key when testing SimpleTestCase.assertRedirects()

2014-06-18 Thread Antonio Alaniz
. I'm going move some of this work around between functional and unit tests and then try out your suggestion with the client. Tony On Tuesday, June 17, 2014 7:26:27 PM UTC-7, Antonio Alaniz wrote: > > I'm testing a redirect that would include the primary key. Can anyone tell > me how I

Expected URL with primary key when testing SimpleTestCase.assertRedirects()

2014-06-17 Thread Antonio Alaniz
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\d+)/', 200) -- You received this message because you are subscribed to the Google