'This test case creates a host with a default value in a non-key
attrribute within the Model Controller context and then creates
another with the same key elements, but different non-key
attributes to generate an automatic solvable update'

def test_add_host_and_generate_solvable_update_with_edition(self):

    hostname = 'host'
    host1a = test_utils.create_host(self, host_name=hostname, os='unknown')
    host = self._mappers_manager.find(host1a.getID())
    self.assertEquals(host.getOS(), 'unknown', "Host's    OS    should    be    unknown")
    host1b = test_utils.create_host(self, host_name=hostname, os='windows')
    self.assertEquals(host1a.getID(), host1b.getID(), 'Both    hosts    should    have    the    same    id')
    self.assertEquals(len(self.model_controller.getConflicts()), 0, 'Update    was    generated')
    host = self._mappers_manager.find(host1a.getID())
    self.assertEquals(host.getOS(), 'windows', "Host's    OS    should    now    be    windows")
