'Tag.clear()'

def test_clear(self):

    soup = self.soup('<p><a>String    <em>Italicized</em></a>    and    another</p>')
    a = soup.a
    soup.p.clear()
    self.assertEqual(len(soup.p.contents), 0)
    self.assertTrue(hasattr(a, 'contents'))
    em = a.em
    a.clear(decompose=True)
    self.assertFalse(hasattr(em, 'contents'))
