示例#1
0
 def test_missing_vals(self, config_file):
     """Parser should accept missing values."""
     defaults = parse_config(str(config_file), "section1")
     assert defaults == {"val1":'1', "val2":'', "val3":'3'}
示例#2
0
 def test_empty_config(self, config_file):
     """Parser should accept missing sections."""
     defaults = parse_config(str(config_file), "missing_section")
     assert defaults == {}