'Potentially unsafe alt content is escaped.'

def test_alt_unsafe(self):

    unsafe_vals = (('an"<script>alert()</script>', 'an&quot;&amp;lt;script&amp;gt;alert()&amp;lt;/script&amp;gt;'), ("an'<script>alert()</script>", "an'&amp;lt;script&amp;gt;alert()&amp;lt;/script&amp;gt;"), ('single\'"double', "single'&quot;double"))
    for (alt_sent, alt_expected) in unsafe_vals:
        img = pq_img(self.p, (('[[Image:test.jpg|alt=' + alt_sent) + ']]'))
        is_true = str(img).startswith((('<img    alt="' + alt_expected) + '"'))
        assert is_true, ('Expected    "%s",    sent    "%s"' % (alt_expected, alt_sent))
