def test_attributes_map(self): self.assertEqual(attributes(attributes={'spam': 'eggs'}), ' [spam=eggs]')
def test_attributes_pairs(self): self.assertEqual(attributes(attributes=[('spam', 'eggs')]), ' [spam=eggs]')
def test_attributes_raw(self): self.assertEqual(attributes(raw='spam'), ' [spam]')