Definition at line 5 of file cmdline_conf_test.py.
| def newFormat.cmdline_conf_test.Test.__init__ |
( |
|
self | ) |
|
Definition at line 7 of file cmdline_conf_test.py.
9 BaseTest.__init__(self)
10 self.
name = os.path.basename(__file__)[:-5]
12 self.
args=[
"-v",
"-n",
"--option",
"MessageSvc().setFatal.append('AnotherAlg')"]
14 from Gaudi.Configuration import *
15 MessageSvc().setDebug.append("AnAlgorithm")"""
| def newFormat.cmdline_conf_test.Test.validator |
( |
|
self, |
|
|
|
stdout, |
|
|
|
stderr, |
|
|
|
result, |
|
|
|
causes, |
|
|
|
reference, |
|
|
|
error_reference |
|
) |
| |
Definition at line 16 of file cmdline_conf_test.py.
17 def validator(self,stdout,stderr, result, causes, reference, error_reference):
18 conf_dict = eval(
'\n'.join(stdout.splitlines()))
19 expected = {
'MessageSvc': {
'setDebug': [
'AnAlgorithm'],
'setFatal': [
'AnotherAlg']}}
21 if conf_dict != expected:
22 causes.append(
"configuration result")
23 from pprint
import PrettyPrinter
25 result[
"GaudiTest.configuration.expected"] = result.Quote(pp.pformat(expected))
result[
"GaudiTest.configuration.found"] = result.Quote(pp.pformat(conf_dict))
| newFormat.cmdline_conf_test.Test.args |
| newFormat.cmdline_conf_test.Test.name |
| newFormat.cmdline_conf_test.Test.options |
| newFormat.cmdline_conf_test.Test.program |
The documentation for this class was generated from the following file: