'The length of an element is its number of children.'

def test_len(self):

    soup = self.soup('<top>1<b>2</b>3</top>')
    self.assertEqual(len(soup.contents), 1)
    self.assertEqual(len(soup), 1)
    self.assertEqual(len(soup.top), 3)
    self.assertEqual(len(soup.top.contents), 3)
