def testStripAttributes(self):
        html = (u"<a href=\"foobar\" name=\"hello\""
                u"title=\"View foobar\" onclick=\"malicious()\">hello!</a>")

        self.assertEqual(clean_word_text(html),
                         u"<a href=\"foobar\" name=\"hello\" "
                         "title=\"View foobar\">"
                         "hello!</a>")