'Testing the creation of one host, with one interface'

def test_create_host_with_interface(self):

    h = self.plugin.createAndAddHost('pepito', 'linux')
    i = self.plugin.createAndAddInterface(h, '1.2.3.4')
    self._plugin_controller.last_command_information = self.cmdinfo
    self._plugin_controller.onCommandFinished()
    self._model_controller.processAllPendingActions()
    self.assertTrue((i is not None), 'interface    should    have    an    ID')
    host = self._model_controller.getHost(h)
    self.assertTrue((len(host.getAllInterfaces()) == 1), 'Host    should    have    one    interface')
    self.assertTrue((host.getInterface(i) is not None), "The    interface    should    be    the    one    we've    just    create")
