| Index: tests/test_xtm_translations_utils.py |
| =================================================================== |
| --- a/tests/test_xtm_translations_utils.py |
| +++ b/tests/test_xtm_translations_utils.py |
| @@ -77,18 +77,17 @@ |
| def test_sanitize_project_name_characters(): |
| """Test if invalid name characters are replaced as expected.""" |
| test_in = '{0}{1}{0}'.format( |
| 'test', ''.join(const.ProjectName.INVALID_CHARS), |
| ) |
| exp_out = '{0}{1}{0}'.format( |
| 'test', |
| - const.ProjectName.NAME_WILDCARD * |
| - len(const.ProjectName.INVALID_CHARS), |
| + const.ProjectName.NAME_WILDCARD * len(const.ProjectName.INVALID_CHARS), |
| ) |
| assert exp_out == utils.sanitize_project_name(test_in) |
| def test_sanitize_project_name_length(): |
| """Test if names that are too long are truncated as expected.""" |
| test_in = 'a' * (const.ProjectName.MAX_LENGTH + 10) |