'simple.redirect_to returns a permanent redirect (301) by default'

def test_redirect_to_returns_permanent_redirect(self):

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