Skip to content

Expectation::toBeAValidENVITask ​

Member of Expectation

idl
Expectation.toBeAValidENVITask, $
  /_expect_failure

Verifies that the expectation value is a valid ENVI task by using the idl ENVITask() function. The expectations value should be set to the name of a task.

Examples ​

idl
; make sure that ENVI has started - an error is
; thrown if it is not
e = envi(/headless)
(it.expects('SubsetRaster')).toBeAValidENVITask
(it.expects('MyCustomTaskNotInstaller'))._not_.toBeAValidENVITask

Keywords ​

_expect_failure {#kw-_expect_failure} ​

optionalinputtype=Boolean

If the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.

Licensed under MIT.