def testRemoveFlagOnMultipleValue(self):
        obj = {'isa': 'XCBuildConfiguration', 'buildSettings': {'flag': ['-flag', '-b-flag']}}
        dobj = XCBuildConfiguration().parse(obj)

        dobj.remove_flags('flag', '-flag')
        self.assertEqual(dobj.buildSettings.flag, '-b-flag')
    def testRemoveFlagNonExistent(self):
        obj = {'isa': 'XCBuildConfiguration', 'buildSettings': {'flag1': '-flag'}}
        dobj = XCBuildConfiguration().parse(obj)

        dobj.remove_flags('flag', '-flag')
        self.assertIsNone(dobj.buildSettings['flag'])
    def testRemoveFlagAllValues(self):
        obj = {'isa': 'XCBuildConfiguration', 'buildSettings': {'flag': '-flag'}}
        dobj = XCBuildConfiguration().parse(obj)

        dobj.remove_flags('flag', None)
        self.assertIsNone(dobj.buildSettings['flag'])
    def testRemoveFlagOnEmpty(self):
        obj = {'isa': 'XCBuildConfiguration'}
        dobj = XCBuildConfiguration().parse(obj)

        dobj.remove_flags('flag', '-flag')
        self.assertIsNone(dobj['buildSettings'])