vdirsyncer/tests/test_utils.py
Markus Unterwaditzer cd31e66798 Flake 8
2014-03-16 11:47:01 +01:00

28 lines
549 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
}