def test_get_hostname_for_host_mor(self): host_mor = resource_util.get_host_mor_by_name( self.session, fake_vmware_api.Constants.HOST_NAME) host_name = resource_util.get_hostname_for_host_mor( self.session, host_mor) self.assertTrue(host_name)
def test_get_host_mor_for_invalid_hostname(self): host_mor = resource_util.get_host_mor_by_name(self.session, "fake_host") self.assertFalse(host_mor)
def test_get_host_mor_for_invalid_hostname(self): host_mor = resource_util.get_host_mor_by_name( self.session, "fake_host") self.assertFalse(host_mor)