'Tests that referencing a tag name as a member delegates to find().'

def testTagNameAsFind(self):

    soup = BeautifulSoup('<b    id="1">foo<i>bar</i></b><b>Red    herring</b>')
    self.assertEqual(soup.b.i, soup.find('b').find('i'))
    self.assertEqual(soup.b.i.string, 'bar')
    self.assertEqual(soup.b['id'], '1')
    self.assertEqual(soup.b.contents[0], 'foo')
    self.assert_((not soup.a))
    self.assertEqual(soup.bTag.iTag.string, 'bar')
    self.assertEqual(soup.b.iTag.string, 'bar')
    self.assertEqual(soup.find('b').find('i'), soup.bTag.iTag)
