示例#1
0
def test_attr_list(attributes, expected):
    assert lang.attr_list(attributes=attributes) == expected
示例#2
0
 def test_attributes_map(self):
     self.assertEqual(attr_list(attributes={'spam': 'eggs'}),
                      ' [spam=eggs]')
示例#3
0
def test_attr_list_map():
    assert attr_list(attributes={'spam': 'eggs'}) == ' [spam=eggs]'
示例#4
0
 def test_attributes_pairs(self):
     self.assertEqual(attr_list(attributes=[('spam', 'eggs')]),
                      ' [spam=eggs]')
示例#5
0
def test_attr_list_pairs():
    assert attr_list(attributes=[('spam', 'eggs')]) == ' [spam=eggs]'