summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2018-09-02 12:36:52 -0400
committerVal Neekman <val@neekware.com>2018-09-02 12:36:52 -0400
commitbeca50eaff20ca20652df782354a8f184c1eaf4c (patch)
treef0afd8a85c1069d5d1f1922cdf5fb45bd0c93841 /test.py
parent4c1a344652dfef32f786a96d94b351f4277da964 (diff)
downloadpython-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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.py b/test.py
index 3d37a0b..9ff9ec0 100644
--- a/test.py
+++ b/test.py
@@ -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'])