def test_get_updated_capabilities_replace_to_existing_capabilities(self):
    new_capabilities = {'BootMode': 'bios'}
    expected_capabilities = 'BootMode:bios'
    cap_returned = utils.get_updated_capabilities('BootMode:uefi', new_capabilities)
    set1 = set(expected_capabilities.split(','))
    set2 = set(cap_returned.split(','))
    self.assertEqual(set1, set2)
    self.assertIsInstance(cap_returned, str)
def test_get_updated_capabilities_replace_to_existing_capabilities(self):
    new_capabilities = {'BootMode': 'bios'}
    expected_capabilities = 'BootMode:bios'
    cap_returned = utils.get_updated_capabilities('BootMode:uefi', new_capabilities)
    set1 = set(expected_capabilities.split(','))
    set2 = set(cap_returned.split(','))
    self.assertEqual(set1, set2)
    self.assertIsInstance(cap_returned, str)