

def test_base(self):
    logging.debug('')
    logging.debug('test_base')
    assert_raises(self, "ResourceAllocator('invalid-name')", globals(), locals(), NameError, "name 'invalid-name' is not alphanumeric")
    allocator = ResourceAllocator('dummy')
    retcode.assertEqual(allocator.name, 'dummy')
    allocator.invalidate()
    allocator.configure('')
    (retcode, info) = allocator.check_compatibility({
        'remote_command': 'echo',
        'no-such-key': True,
    })
    self.assertEqual(retcode, 0)
    self.assertEqual(info, ['no-such-key'])
    assert_raises(self, 'allocator.max_servers(dict())', globals(), locals(), NotImplementedError, 'max_servers')
    assert_raises(self, 'allocator.time_estimate(dict())', globals(), locals(), NotImplementedError, 'time_estimate')
    assert_raises(self, "allocator.deploy('xyzzy', dict(), dict())", globals(), locals(), NotImplementedError, 'deploy')
    assert_raises(self, 'allocator.release(None)', globals(), locals(), NotImplementedError, 'release')

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_resource.py TestCase.test_base/VarMisuse@50/85 `self`->`retcode`