def test_delete(self): c = Cell('!!n=v|', True) c.del_attr('n') self.assertEqual(c.string, '!!|') c = Cell('!!n=v1 m=w n="v2"|', True) c.del_attr('n') self.assertEqual(c.string, '!!m=w |') # Test removing a non-existing attribute c.del_attr('n')
def test_delete(): c = Cell('!!n=v|', True) c.del_attr('n') assert c.string == '!!|' c = Cell('!!n=v1 m=w n="v2"|', True) c.del_attr('n') assert c.string == '!! m=w|' # Test removing a non-existing attribute c.del_attr('n')