Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Assert NameLoad orelse Assert NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Str Str Lambda arguments args NameParam defaults CompareEq NameLoad Num Expr Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Assert Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call NameLoad Str Num Assert CompareEq Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assert CompareEq Call AttributeLoad NameLoad attr Str Num Assert Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call NameLoad Str handlers ExceptHandler body Assert NameLoad orelse Assert NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str Str keyword Num Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore TupleLoad Str Str Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad decorator_list decorator_list
N/A N/A os.path N/A sys tempfile NamedTemporaryFile pebl config pebl.test testfile should_raise_exception N/A N/A param value N/A N/A N/A N/A N/A N/A N/A config set param value N/A N/A N/A N/A True N/A N/A False N/A TestConfig N/A N/A setUp N/A N/A self N/A N/A N/A N/A N/A config StringParameter test.param0 a param default foo N/A N/A N/A config StringParameter test.param1 a param N/A N/A config oneof foo bar N/A N/A N/A config IntParameter test.param2 a param default 20 N/A N/A N/A config IntParameter test.param3 a param N/A N/A config atmost 100 N/A N/A N/A config IntParameter test.param4 a param N/A N/A config atleast 100 N/A N/A N/A config IntParameter test.param5 a param N/A N/A config between 10 100 N/A N/A N/A config IntParameter test.param6 a param N/A N/A N/A x N/A N/A x 50 N/A N/A N/A config FloatParameter test.param7 a param N/A N/A config between 1.3 2.7 N/A test_get1 N/A N/A self N/A N/A N/A N/A N/A N/A config get test.param0 foo N/A test_get2 N/A N/A self N/A N/A N/A N/A N/A N/A config get tEST.paRam0 foo N/A test_get3 N/A N/A self N/A N/A N/A N/A N/A N/A config get test.param2 20 N/A test_get4 N/A N/A self N/A N/A N/A N/A N/A config set test.param2 10 N/A N/A isinstance N/A N/A config get test.param2 int N/A N/A N/A N/A config get test.param2 10 N/A test_set1 N/A N/A self N/A N/A N/A N/A should_raise_exception test.param2 foo N/A test_set2 N/A N/A self N/A N/A N/A N/A should_raise_exception test.param100 50 N/A test_set3 N/A N/A self N/A N/A N/A N/A N/A config set test.param4 150 N/A N/A should_raise_exception test.param4 50 N/A test_set4 N/A N/A self N/A N/A N/A N/A N/A config set test.param5 50 N/A N/A should_raise_exception test.param5 5 N/A N/A N/A N/A config get test.param5 50 N/A test_set5 N/A N/A self N/A N/A N/A N/A should_raise_exception test.param6 49 N/A test_set6 N/A N/A self N/A N/A N/A N/A should_raise_exception test.param7 0.5 N/A test_set7 N/A N/A self N/A N/A N/A N/A N/A config set test.param7 1.5 N/A N/A N/A config set test.param7 1.50 N/A N/A N/A config set test.param7 1.5e0 N/A N/A N/A N/A config get test.param7 1.5 N/A N/A isinstance N/A N/A config get test.param7 float N/A test_set8 N/A N/A self N/A N/A N/A N/A N/A config set test.param1 foo N/A N/A N/A config set test.param1 bar N/A N/A should_raise_exception test.param1 foobar N/A test_config1 N/A N/A self N/A N/A N/A N/A N/A config read N/A testfile config1.txt N/A test_config2 N/A N/A self N/A N/A N/A N/A N/A N/A N/A config read N/A testfile config2.txt N/A N/A N/A N/A True N/A N/A False N/A test_configobj1 N/A N/A self N/A N/A N/A expected [test]
param1 = foo
param0 = foo

[test1]
param1 = 5

 N/A N/A N/A config IntParameter test1.param1 a param default 5 N/A N/A N/A config set test.param1 foo N/A params N/A N/A N/A N/A config _parameters get x N/A x N/A test.param0 test.param1 test1.param1 N/A tmpfile N/A NamedTemporaryFile prefix pebl.test N/A N/A N/A N/A N/A config configobj params write tmpfile N/A N/A N/A N/A tmpfile file seek 0 N/A actual N/A N/A tmpfile read N/A N/A actual expected N/A N/A