'Testing the creation of one host'

def test_create_host(self):

    h = self.plugin.createAndAddHost('pepito', 'linux')
    self._plugin_controller.last_command_information = self.cmdinfo
    self._plugin_controller.onCommandFinished()
    self._model_controller.processAllPendingActions()
    self.assertTrue((h is not None), 'host    should    have    an    ID')
    self.assertTrue((len(self._model_controller.getAllHosts()) == 1), 'The    controller    should    have    one    host')
    self.assertTrue((self._model_controller.getHost(h) is not None), 'The    host    should    be    in    the    controller')
