Example #1
0
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
    }]
Example #2
0
def test_spaces_trimmed():
    '''Test that spaces are removed.'''
    dict_with_spaces = [{'this': ' that '}]

    assert list(icsconverter.clean_spaces(dict_with_spaces)) == [{
        'this': 'that'
    }]
Example #3
0
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}]
Example #4
0
def test_spaces_trimmed():
    '''Test that spaces are removed.'''
    dict_with_spaces = [{'this': ' that '}]
    
    assert list(icsconverter.clean_spaces(dict_with_spaces)) == [{'this': 'that'}]