Add test for issue #1889

This commit is contained in:
Kit 2018-01-25 22:56:48 +01:00
parent 6a8cb905aa
commit 52ef51f36e
No known key found for this signature in database
GPG Key ID: E9B25746C2EADBA0
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# coding: utf-8
from __future__ import unicode_literals
from ...lang.lex_attrs import is_stop
from ...lang.en.stop_words import STOP_WORDS
import pytest
@pytest.mark.parametrize('word', ['the'])
def test_lex_attrs_stop_words_case_sensitivity(word):
assert is_stop(word, STOP_WORDS) == is_stop(word.upper(), STOP_WORDS)