Exemple #1
0
def test_attr_deletion():
    t = Tag('<t n1=v1 n1=v333 n2=v22>c</t>')
    t.del_attr('n1')
    assert t.string == '<t n2=v22>c</t>'
Exemple #2
0
 def test_attr_deletion(self):
     t = Tag('<t n1=v1 n1=v333 n2=v22>c</t>')
     t.del_attr('n1')
     self.assertEqual(t.string, '<t n2=v22>c</t>')