def test_05_addDeleteValue(self):
        enum_bundle = self.con.getBundle("enum", "TestEnumBundleNew")
        value = EnumField()
        value.name = "Added"
        value.description = "description"
        self.con.addValueToBundle(enum_bundle, value)
        enum_bundle = self.con.getBundle("enum", "TestEnumBundleNew")
        self.assertEquals(len(enum_bundle.values), 4)
        new_value = ""
        for v in enum_bundle.values :
            if v.name == "Added" :
                new_value = v
        self.assertEquals(new_value.description, "description")
        self.con.removeValueFromBundle(enum_bundle, new_value)
        enum_bundle = self.con.getBundle("enum", "TestEnumBundleNew")
        self.assertFalse("Added" in [elem.name for elem in enum_bundle.values])
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/tests/connection_test.py/EnumBundleTests.test_05_addDeleteValue/original