'Makes sure new tags can be created complete with attributes.'

def testNewTagWithAttributes(self):

    soup = BeautifulSoup()
    a = Tag(soup, 'a', [('href', 'foo')])
    b = Tag(soup, 'b', {'class': 'bar'})
    soup.insert(0, a)
    soup.insert(1, b)
    self.assertEqual(soup.a['href'], 'foo')
    self.assertEqual(soup.b['class'], 'bar')
