'This test case creates a host within the Model Controller
context and then creates another with the same key elements,
but different non-key attributes to generate an update to
be resolved by the user'

def test_add_host_and_generate_unsolvable_update(self):

    hostname = 'host'
    host1a = test_utils.create_host(self, host_name=hostname, os='windows')
    host = self._mappers_manager.find(host1a.getID())
    self.assertEquals(host.getOS(), 'windows', "Host's    OS    should    be    windows")
    host1b = test_utils.create_host(self, host_name=hostname, os='linux')
    self.assertEquals(host1a.getID(), host1b.getID(), 'Both    hosts    should    have    the    same    id')
    self.assertEquals(len(self.model_controller.getConflicts()), 1, 'Update    was    not    generated')
    host = self._mappers_manager.find(host1a.getID())
    self.assertEquals(host.getOS(), 'windows', "Host's    OS    should    still    be    windows")
    self.assertEquals(len(host.getUpdates()), 1, 'The    host    should    have    a    pending    update')
