def test_none_is_okay(): '''Test that None fields don't raise errors.''' dict_with_spaces = [{'this': None}] assert list(icsconverter.clean_spaces(dict_with_spaces)) == [{ 'this': None }]
def test_spaces_trimmed(): '''Test that spaces are removed.''' dict_with_spaces = [{'this': ' that '}] assert list(icsconverter.clean_spaces(dict_with_spaces)) == [{ 'this': 'that' }]
def test_none_is_okay(): '''Test that None fields don't raise errors.''' dict_with_spaces = [{'this': None}] assert list(icsconverter.clean_spaces(dict_with_spaces)) == [{'this': None}]
def test_spaces_trimmed(): '''Test that spaces are removed.''' dict_with_spaces = [{'this': ' that '}] assert list(icsconverter.clean_spaces(dict_with_spaces)) == [{'this': 'that'}]