def test_attr_list(attributes, expected): assert lang.attr_list(attributes=attributes) == expected
def test_attributes_map(self): self.assertEqual(attr_list(attributes={'spam': 'eggs'}), ' [spam=eggs]')
def test_attr_list_map(): assert attr_list(attributes={'spam': 'eggs'}) == ' [spam=eggs]'
def test_attributes_pairs(self): self.assertEqual(attr_list(attributes=[('spam', 'eggs')]), ' [spam=eggs]')
def test_attr_list_pairs(): assert attr_list(attributes=[('spam', 'eggs')]) == ' [spam=eggs]'