vdirsyncer/tests/__init__.py
Markus Unterwaditzer 273cc4d6fd Fixed a lot of tests
2014-03-04 17:27:09 +01:00

8 lines
251 B
Python

def normalize_item(x):
return set(x for x in x.raw.splitlines() if
not x.startswith('X-RADICALE-NAME') and
not x.startswith('PRODID'))
def assert_item_equals(a, b):
assert normalize_item(a) == normalize_item(b)