1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-12-22 12:12:18 +01:00

tests/test_fix.py: Add test for missing space after comma

This commit is contained in:
Alan Orth 2019-08-28 00:08:56 +03:00
parent 89d72540f1
commit 07f80cb37f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -56,3 +56,13 @@ def test_fix_newlines():
ya'''
assert fix.newlines(value) == 'Kenya'
def test_fix_comma_space():
'''Test adding space after comma.'''
value = 'Orth,Alan S.'
field_name = 'dc.contributor.author'
assert fix.comma_space(value, field_name) == 'Orth, Alan S.'