To me it is not quite clear what this function does. Especially the return n looks like some opcode. Anyways, I think you misunderstood me with the tests. They are very simple in python - Here's an example:

```python
test = yaml.Load(file('conf_tes.yml'))

definition = yaml.Load(file('conf_def.yml'))
default_parser_obj = DefaultParsers(definition)
 
def test_integer():
    parsed_test = default_parser_obj.parse(test)
    assert parsed_test['int_value'] == int value that you suspect

```
does that make sense? We can chat over skype to clarify it if not.