def test_creation(self):
     "Test the creation of a Bag"
     # With a dictionary
     bag = Bag(self.bag)
     self.failUnless(bag == self.bag)
     # With optional parameters
     bag = Bag(**self.bag)
     self.failUnless(bag == self.bag)
     # With a list of tuples
     bag = Bag([(k, v) for (k, v) in self.bag.items()])
     self.failUnless(bag == self.bag)
 def setUp(self):
     self.bag = Bag(a=1, b=2, c=3)