def test_delete_setting(self): section = Section("section", None) section.append(Setting("key1", "value11")) section.append(Setting("key2", "value12")) section.delete_setting("key1") self.assertEqual(str(section), "section {key2 : 'value12'}") section.append(Setting("key3", "value13")) section.append(Setting("key4", "value14")) section.delete_setting("key3") self.assertEqual(str(section), "section {key2 : 'value12', key4 : 'value14'}")
def test_delete_setting(self): section = Section('section', None) section.append(Setting('key1', 'value11')) section.append(Setting('key2', 'value12')) section.delete_setting('key1') self.assertEqual(str(section), "section {key2 : 'value12'}") section.append(Setting('key3', 'value13')) section.append(Setting('key4', 'value14')) section.delete_setting('key3') self.assertEqual(str(section), "section {key2 : 'value12', key4 : 'value14'}")
def test_delete_setting(self): section = Section("section", None) section.append(Setting("key1", "value11")) section.append(Setting("key2", "value12")) section.delete_setting("key1") self.assertEqual(str(section), "section {key2 : 'value12'}") section.append(Setting("key3", "value13")) section.append(Setting("key4", "value14")) section.delete_setting("key3") self.assertEqual(str(section), "section {key2 : 'value12', key4 : 'value14'}")
def test_delete_setting(self): section = Section('section', None) section.append(Setting('key1', 'value11')) section.append(Setting('key2', 'value12')) section.delete_setting('key1') self.assertEqual(str(section), "section {key2 : 'value12'}") section.append(Setting('key3', 'value13')) section.append(Setting('key4', 'value14')) section.delete_setting('key3') self.assertEqual(str(section), "section {key2 : 'value12', key4 : 'value14'}")
def test_delete_setting(self): section = Section("section", None) section.append(Setting("key1", "value11")) section.append(Setting("key2", "value12")) section.delete_setting("key1") self.assertEqual("section {key2 : value12}", section.__str__()) section.append(Setting("key3", "value13")) section.append(Setting("key4", "value14")) section.delete_setting("key3") self.assertEqual("section {key2 : value12, key4 : value14}", section.__str__())