Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test__remove_stopwords_not_empty(self):
text_cleaner = TextCleaner()
text_cleaner.language_code = 'en'
text_cleaner.STOPWORDS['en'] = ['is', 'a', 'in']
returned = text_cleaner._remove_stopwords('This is a text written in English')
assert returned == 'This text written English'
def test__remove_stopwords_empty(self):
text_cleaner = TextCleaner()
returned = text_cleaner._remove_stopwords('')
assert returned == ''