def assertRedirects(self, resp, redirect_url, msg=None):
self.assertIn(<EOL>resp.status_code, [<NUM_LIT>, <NUM_LIT>], msg=msg or ('<STR_LIT>'))<EOL>self.assertEqual(<EOL>resp._headers['<STR_LIT:location>'][<NUM_LIT:1>],<EOL>redirect_url,<EOL>msg=msg or ('<STR_LIT>'))<EOL>
Overrides the method that comes with Django's TestCase.

This is necessary because the original method relies on self.client
which we are not using here.