def integrityTestTaskCfgFile(taskName, cfgFileName=None):
    """ For a given task, inspect the given .cfg file (or simply find/use its
    installed .cfg file), and check those values against the defaults
    found in the installed .cfgspc file.  They should be the same.
    If the file name is not given, the installed one is found and used. """

    from . import teal # don't import above, to avoid circular import (may need to mv)
    if not cfgFileName:
        ignored, cfgFileName = findCfgFileForPkg(taskName, '.cfg')
    diffDict = teal.diffFromDefaults(cfgFileName, report=False)
    if len(diffDict) < 1:
        return # no error
    msg = 'The following par:value pairs from "'+cfgFileName+ \
          '" are not the correct defaults: '+str(diffDict)
    raise RuntimeError(msg)
def integrityTestTaskCfgFile ( taskName , cfgFileName = None ) : from . import teal if not cfgFileName : ignored , cfgFileName = findCfgFileForPkg ( taskName , '.cfg' ) diffDict = teal . diffFromDefaults ( cfgFileName , report = False ) if len ( diffDict ) < 1 : return msg = 'The following par:value pairs from "' + cfgFileName + '" are not the correct defaults: ' + str ( diffDict ) raise RuntimeError ( msg )
For a given task, inspect the given .cfg file (or simply find/use its
    installed .cfg file), and check those values against the defaults
    found in the installed .cfgspc file.  They should be the same.
    If the file name is not given, the installed one is found and used.