Beispiel #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
    }]
Beispiel #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'
    }]
Beispiel #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}]
Beispiel #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'}]