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
1 changed files with 10 additions and 0 deletions

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.'