vdirsyncer/tests/test_utils.py
Markus Unterwaditzer 8db16454f8 More tests
I was bored
2014-03-13 16:22:50 +01:00

27 lines
548 B
Python

# -*- coding: utf-8 -*-
'''
vdirsyncer.tests.test_utils
~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 Markus Unterwaditzer
:license: MIT, see LICENSE for more details.
'''
import vdirsyncer.utils as utils
def test_parse_options():
o = {
'foo': 'yes',
'bar': '',
'baz': 'whatever',
'bam': '123',
'asd': 'off'
}
assert dict(utils.parse_options(o.items())) == {
'foo': True,
'bar': '',
'baz': 'whatever',
'bam': 123,
'asd': False
}