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