def test_strip_forms(self): # Assert strip <form> elements. v = web.strip_forms(" <form method=\"get\">text</form> ") self.assertEqual(v, " ") print "pattern.web.strip_forms()"