Ejemplo n.º 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
    }]
Ejemplo n.º 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'
    }]
Ejemplo n.º 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}]
Ejemplo n.º 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'}]