Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Num With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TupleLoad Num Num Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests the conf module of pyexperiment

Written by Peter Duerr
 __future__ print_function __future__ unicode_literals __future__ division __future__ absolute_import N/A unittest N/A tempfile N/A os pyexperiment conf TestConf N/A N/A unittest TestCase N/A N/A Test the conf module's basic functions
     tearDown N/A N/A self N/A N/A N/A Tear down the test fixture
         N/A N/A N/A conf reset_instance N/A test_empty_conf N/A N/A self N/A N/A N/A Test empty config throws Exception
         N/A N/A N/A conf reset_instance N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A conf N/A a N/A N/A N/A self assertRaises KeyError N/A conf __getitem__ a N/A test_empty_initialized_conf N/A N/A self N/A N/A N/A Test empty config throws Exception even after initialization
         N/A N/A N/A conf reset_instance N/A N/A N/A conf initialize N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A conf N/A a N/A test_save_no_config N/A N/A self N/A N/A N/A Test saving uninitialized config
         N/A N/A conf N/A a 12 N/A N/A N/A tempfile NamedTemporaryFile temp N/A N/A N/A N/A conf save N/A temp name N/A N/A N/A conf reset_instance N/A N/A N/A self assertNotIn a conf N/A N/A N/A conf load N/A temp name N/A N/A N/A self assertIn a conf N/A N/A N/A self assertEqual N/A int N/A conf N/A a 12 N/A test_in N/A N/A self N/A N/A N/A Test the `in` function works for config
         N/A N/A N/A conf initialize N/A N/A conf N/A section_1.a 12 N/A N/A N/A self assertTrue N/A section_1.a conf N/A N/A N/A self assertFalse N/A section_1.f conf N/A test_in_uninitialized N/A N/A self N/A N/A N/A Test the `in` function works for config
         N/A N/A conf N/A section_1.a 12 N/A N/A N/A self assertTrue N/A section_1.a conf N/A N/A N/A self assertFalse N/A section_1.f conf N/A test_get_default N/A N/A self N/A N/A N/A Test getting config values with a default argument
         N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A conf N/A a N/A N/A N/A self assertRaises KeyError N/A conf get a N/A N/A N/A self assertEqual N/A N/A conf get a default 12 12 N/A N/A N/A self assertRaises KeyError N/A conf get a N/A test_initialize N/A N/A self N/A N/A N/A Test initializing uninitialized config with an integer
         N/A N/A conf N/A a 12 N/A N/A N/A conf initialize N/A N/A N/A self assertEqual N/A conf N/A a 12 N/A test_init_float N/A N/A self N/A N/A N/A Test initializing uninitialized config with a float
         N/A N/A conf N/A a 12.34 N/A N/A N/A conf initialize N/A N/A N/A self assertEqual N/A conf N/A a 12.34 N/A test_init_string N/A N/A self N/A N/A N/A Test initializing uninitialized config with a string
         N/A N/A conf N/A a foo N/A N/A N/A conf initialize N/A N/A N/A self assertEqual N/A conf N/A a foo N/A test_init_boolean N/A N/A self N/A N/A N/A Test initializing uninitialized config with a boolean
         N/A N/A conf N/A a False N/A N/A N/A conf initialize N/A N/A N/A self assertEqual N/A conf N/A a False N/A test_init_list N/A N/A self N/A N/A N/A Test initializing uninitialized config with a list
         N/A N/A conf N/A a N/A 1 2 3 4 N/A N/A N/A conf initialize N/A N/A N/A self assertEqual N/A conf N/A a N/A 1 2 3 4 N/A test_init_tuple N/A N/A self N/A N/A N/A Test initializing uninitialized config with a tuple
         N/A N/A conf N/A a N/A 1 2 3 4 N/A N/A N/A conf initialize N/A N/A N/A self assertEqual N/A conf N/A a N/A 1 2 3 4 N/A N/A TestConfFile N/A N/A unittest TestCase N/A N/A Test the conf module with a configuration file
     N/A TEST_CONFIG [section_1]
a = 12
b = 13
[section_2]
c = True setUp N/A N/A self N/A N/A N/A Setup the test fixture
         N/A N/A self filename N/A N/A N/A tempfile mkstemp N/A 1 N/A N/A open N/A self filename w outfile N/A N/A N/A N/A outfile write N/A self TEST_CONFIG N/A tearDown N/A N/A self N/A N/A N/A Tear down the test fixture
         N/A N/A N/A conf reset_instance N/A N/A N/A os remove N/A self filename N/A test_initialize_with_file N/A N/A self N/A N/A N/A Test initializing uninitialized config with a file
         N/A N/A conf N/A a 12 N/A N/A conf N/A section_1.a 13 N/A N/A N/A self assertEqual N/A conf N/A a 12 N/A N/A N/A self assertEqual N/A conf N/A section_1.a 13 N/A N/A N/A conf initialize N/A self filename N/A N/A N/A self assertEqual N/A conf N/A a 12 N/A N/A N/A self assertEqual N/A conf N/A section_1.a 12 N/A test_load_conf N/A N/A self N/A N/A N/A Test loading a configuration
         N/A N/A N/A conf load N/A self filename N/A a_conf N/A conf N/A section_1.a N/A N/A N/A self assertEqual a_conf 12 N/A b_conf N/A conf N/A section_1.b N/A N/A N/A self assertEqual b_conf 13 N/A c_conf N/A conf N/A section_2.c N/A N/A N/A self assertEqual c_conf True N/A test_save_load_config N/A N/A self N/A N/A N/A Test saving and reloading conf
         N/A N/A N/A conf load N/A self filename N/A filename N/A N/A N/A tempfile mkstemp N/A 1 N/A N/A N/A conf save filename N/A N/A N/A conf reset_instance N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A conf N/A section_1.a N/A N/A N/A conf load filename N/A a_conf N/A conf N/A section_1.a N/A N/A N/A self assertEqual a_conf 12 N/A b_conf N/A conf N/A section_1.b N/A N/A N/A self assertEqual b_conf 13 N/A c_conf N/A conf N/A section_2.c N/A N/A N/A self assertEqual c_conf True N/A N/A N/A self assertTrue N/A N/A N/A os path isfile filename N/A N/A N/A os remove filename N/A test_len N/A N/A self N/A N/A N/A Test the length of the config is reported correctly
         N/A N/A N/A conf load N/A self filename N/A N/A N/A self assertEqual N/A len conf 3 N/A test_set_value N/A N/A self N/A N/A N/A Test setting config values
         N/A N/A N/A conf load N/A self filename N/A N/A N/A self assertFalse N/A a conf N/A N/A conf N/A a 2 N/A N/A N/A self assertTrue N/A a conf N/A N/A N/A self assertEqual N/A conf N/A a 2 N/A test_set_value_section N/A N/A self N/A N/A N/A Test setting config values in new section
         N/A N/A N/A conf load N/A self filename N/A N/A N/A self assertFalse N/A a.b conf N/A N/A conf N/A a.b 2 N/A N/A N/A self assertTrue N/A a.b conf N/A N/A N/A self assertEqual N/A conf N/A a.b 2 N/A test_get_or_set N/A N/A self N/A N/A N/A Test get_or_setting config values
         N/A N/A N/A conf load N/A self filename N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A conf N/A a N/A N/A N/A self assertRaises KeyError N/A conf get a N/A N/A N/A self assertFalse N/A a conf N/A N/A N/A self assertEqual N/A N/A conf get_or_set a 12 12 N/A N/A N/A self assertEqual N/A N/A conf get a 12 N/A N/A N/A self assertTrue N/A a conf N/A test_keys N/A N/A self N/A N/A N/A Test the keys method on the configuration
         N/A N/A N/A self assertEqual N/A list N/A N/A conf keys N/A N/A N/A N/A conf load N/A self filename N/A N/A N/A self assertEqual N/A len N/A N/A conf keys 3 N/A test_override_with_args N/A N/A self N/A N/A N/A Test adding config options from dictionary
         N/A N/A N/A conf load N/A self filename N/A N/A N/A self assertTrue N/A section_1.a conf N/A N/A N/A self assertEqual N/A conf N/A section_1.a 12 N/A N/A N/A conf override_with_args N/A N/A section_1.a 13 N/A N/A N/A self assertEqual N/A conf N/A section_1.a 13 N/A test_override_with_args_level N/A N/A self N/A N/A N/A Test adding config options from dictionary at higher level
         N/A N/A N/A conf load N/A self filename N/A N/A conf N/A section_1.section_12.a 15 N/A N/A N/A self assertEqual N/A conf N/A section_1.section_12.a 15 N/A N/A N/A conf override_with_args N/A N/A section_1.section_12.a 13 N/A N/A N/A self assertEqual N/A conf N/A section_1.section_12.a 13 N/A test_override_with_args_level2 N/A N/A self N/A N/A N/A Test adding config options from dictionary at new level
         N/A N/A N/A conf load N/A self filename N/A N/A N/A conf override_with_args N/A N/A section_1.section_12.a 13 N/A N/A N/A self assertEqual N/A conf N/A section_1.section_12.a 13 N/A test_override_with_args_spec N/A N/A self N/A N/A N/A Test adding config options with a spec
         N/A spec [section_1]
a = integer(min=0, default=5, max=13) N/A N/A N/A conf load N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A conf override_with_args N/A N/A section_1.a 13 N/A N/A N/A self assertEqual N/A conf N/A section_1.a 13 N/A N/A N/A conf validate_config N/A conf base N/A N/A N/A self assertEqual N/A conf N/A section_1.a 13 N/A test_override_with_args_wrong N/A N/A self N/A N/A N/A Test adding config options with a wrong spec
         N/A spec [section_1]
a = integer(min=0, default=5, max=12) N/A expected_error Configuration does not adhere to the specification: \[\(\['section_1'\], 'a', VdtValueTooBigError\('the value \"13\" is too big.',\)\)\] N/A N/A N/A conf load N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A conf override_with_args N/A N/A section_1.a 13 N/A N/A N/A self assertRaisesRegexp ValueError expected_error N/A conf validate_config N/A conf base N/A N/A TestConfSpec N/A N/A unittest TestCase N/A N/A Test the conf module with specs
     N/A TEST_CONFIG [section_1]
a = 12
b = 13
[section_2]
c = True setUp N/A N/A self N/A N/A N/A Setup the test fixture
         N/A N/A self filename N/A N/A N/A tempfile mkstemp N/A 1 N/A N/A open N/A self filename w outfile N/A N/A N/A N/A outfile write N/A self TEST_CONFIG N/A tearDown N/A N/A self N/A N/A N/A Tear down the test fixture
         N/A N/A N/A conf reset_instance N/A N/A N/A os remove N/A self filename N/A test_load_with_spec N/A N/A self N/A N/A N/A Test loading a configuration with a specification
         N/A spec [section_1]
a = integer(min=0, default=5) N/A N/A N/A conf load N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A self assertTrue N/A section_1.a conf N/A N/A N/A self assertIsInstance N/A conf N/A section_1.a int N/A N/A N/A self assertEqual N/A conf N/A section_1.a 12 N/A test_load_with_nested_spec N/A N/A self N/A N/A N/A Test loading a configuration with a nested specification
         N/A spec [section_1]
[[section_a]]
a = integer(min=0, default=5) N/A N/A N/A conf load N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A self assertTrue N/A section_1.section_a.a conf N/A N/A N/A self assertIsInstance N/A conf N/A section_1.section_a.a int N/A N/A N/A self assertEqual N/A conf N/A section_1.section_a.a 5 N/A N/A N/A self assertTrue N/A section_1.a conf N/A N/A N/A self assertIsInstance N/A conf N/A section_1.a str N/A N/A N/A self assertEqual N/A conf N/A section_1.a 12 N/A test_load_with_wrong_spec N/A N/A self N/A N/A N/A Test loading a configuration that does not adhere to the specs
         N/A spec [section_1]
a = integer(min=0, default=5, max=7) N/A expected_error Configuration does not adhere to the specification: \[\(\['section_1'\], 'a', VdtValueTooBigError\('the value \"12\" is too big.',\)\)\] N/A N/A N/A self assertRaisesRegexp ValueError expected_error N/A conf load N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A test_initialize_with_spec N/A N/A self N/A N/A N/A Test initializing uninitialized config with a spec
         N/A spec [section_1]
d = integer(min=0, default=5, max=12) N/A N/A conf N/A section_1.d 13 N/A N/A N/A self assertEqual N/A conf N/A section_1.d 13 N/A N/A N/A conf initialize N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A self assertEqual N/A conf N/A section_1.d 5 N/A test_initialize_with_new_spec N/A N/A self N/A N/A N/A Test initializing uninitialized config with a new spec
         N/A spec [section_1]
d = integer(min=0, default=5, max=12) N/A N/A conf N/A bla 13 N/A N/A N/A self assertEqual N/A conf N/A bla 13 N/A N/A N/A conf initialize N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A self assertEqual N/A conf N/A section_1.d 5 N/A N/A N/A self assertEqual N/A conf N/A bla 13 N/A test_initialize_with_level_spec N/A N/A self N/A N/A N/A Test initializing uninitialized config with a new spec
         N/A spec [section_1]
d = integer(min=0, default=5, max=12) N/A N/A conf N/A bli.bla 12 N/A N/A conf N/A bla 13 N/A N/A N/A self assertEqual N/A conf N/A bli.bla 12 N/A N/A N/A self assertEqual N/A conf N/A bla 13 N/A N/A N/A conf initialize N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A self assertEqual N/A conf N/A section_1.d 5 N/A N/A N/A self assertEqual N/A conf N/A bli.bla 12 N/A N/A N/A self assertEqual N/A conf N/A bla 13 N/A test_initialize_with_file_spec N/A N/A self N/A N/A N/A Test initializing uninitialized config with a file and spec
         N/A spec [section_1]
a = integer(min=0, default=5, max=12) N/A N/A conf N/A section_1.a 13 N/A N/A N/A self assertEqual N/A conf N/A section_1.a 13 N/A N/A N/A conf initialize N/A self filename spec N/A N/A N/A option encode N/A option N/A N/A spec split N/A N/A N/A self assertEqual N/A conf N/A section_1.a 12 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main