def METHOD_NAME(self):
    worker = None
    with self.assertRaises(ConfigErrors):
        worker = upcloud.UpcloudLatentWorker('test-worker')
    with self.assertRaises(ConfigErrors):
        worker = upcloud.UpcloudLatentWorker('test-worker', image='test-image')
    with self.assertRaises(ConfigErrors):
        worker = upcloud.UpcloudLatentWorker('test-worker', image='test-image',
                                             api_username='test-api-user')
    self.assertTrue(worker is None)