'Ensures redirects cannot be used to link to other sites'

def test_redirects_only_internal_2(self):

    rev = revision(is_approved=True, save=True, content='REDIRECT    <a    class="redirect"    href="http://davidwalsh.name">DWB</a>')
    url = rev.document.get_absolute_url()
    response = self.client.get(url, follow=True)
    self.assertContains(response, 'DWB')
