'simple.redirect_to returns a temporary redirect (302) when explicitely asked to'

def test_redirect_to_can_return_a_temporary_redirect(self):

    response = self.client.get('/views/simple/redirect_to_temp/')
    self.assertEqual(response.status_code, 302)
    self.assertEqual('http://testserver/views/simple/target/', response['Location'])
