I have this test script for uploading file
with open('_material/content.xlsx','rb') as fp:
response = self.client.login(username="user@example.com", password="qwpo1209")
response = self.client.post('/cms/content/up',
{'name': 'test', 'content_file': fp,"is_all":"True"})
self.assertEqual(response.status_code,302) # it shows ok
#then next, how can I follow the redirect and test the page??
self.assertContains(response, "success!")
It returns the redirect 302 but I want to follow the redirect and nect check.
Because there comes the message such as success!
Is it possible?