diff options
| author | Val Neekman <val@neekware.com> | 2018-09-02 12:36:52 -0400 |
|---|---|---|
| committer | Val Neekman <val@neekware.com> | 2018-09-02 12:36:52 -0400 |
| commit | beca50eaff20ca20652df782354a8f184c1eaf4c (patch) | |
| tree | f0afd8a85c1069d5d1f1922cdf5fb45bd0c93841 /test.py | |
| parent | 4c1a344652dfef32f786a96d94b351f4277da964 (diff) | |
| download | python-slugify-1.2.6.tar.gz | |
release 1.2.6, case sensitive slug support1.2.6
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -113,6 +113,11 @@ class TestSlugification(unittest.TestCase): r = slugify(txt, stopwords=['stopword']) self.assertEqual(r, 'this-has-a') + def test_stopword_removal_casesensitive(self): + txt = 'thIs Has a stopword Stopword' + r = slugify(txt, stopwords=['Stopword'], lowercase=False) + self.assertEqual(r, 'thIs-Has-a-stopword') + def test_multiple_stopword_occurances(self): txt = 'the quick brown fox jumps over the lazy dog' r = slugify(txt, stopwords=['the']) |
