

def test_hostnames(self):
    logging.debug('')
    logging.debug('test_hostnames')
    hostnames = RAM.get_hostnames({
        'min_cpus': 1,
    })
    self.assertEqual(hostnames[0], platform.node())
    hostnames = RAM.get_hostnames({
        'allocator': 'LocalHost',
        'localhost': False,
    })
    self.assertEqual(hostnames, None)

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_resource.py TestCase.test_hostnames/original