def test_get_updated_capabilities_multiple_keys(self):
    capabilities = {'ilo_firmware_version': 'xyz', 'foo': 'bar', 'somekey': 'value'}
    cap_string = 'ilo_firmware_version:xyz,foo:bar,somekey:value'
    cap_returned = utils.get_updated_capabilities(None, capabilities)
    set1 = set(cap_string.split(','))
    set2 = set(cap_returned.split(','))
    self.assertEqual(set1, set2)
    self.assertIsInstance(cap_returned, str)
def test_get_updated_capabilities_multiple_keys(self):
    capabilities = {'ilo_firmware_version': 'xyz', 'foo': 'bar', 'somekey': 'value'}
    cap_string = 'ilo_firmware_version:xyz,foo:bar,somekey:value'
    cap_returned = utils.get_updated_capabilities(None, capabilities)
    set1 = set(cap_string.split(','))
    set2 = set(cap_returned.split(','))
    self.assertEqual(set1, set2)
    self.assertIsInstance(cap_returned, str)