summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorArthur Darcet <arthur.darcet@m4x.org>2015-07-03 16:05:06 +0200
committerArthur Darcet <arthur.darcet@m4x.org>2015-07-03 16:05:06 +0200
commit706ecc0d30217c2dd125def1cc5cb5445b010dfa (patch)
treedc183044894104876335dfa5d615170841ee70a3 /test.py
parent85082f6e5d3d5d4d53a1eaa856c5737875efd190 (diff)
downloadpython-slugify-706ecc0d30217c2dd125def1cc5cb5445b010dfa.tar.gz
add a test
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 775a264..4d883d2 100644
--- a/test.py
+++ b/test.py
@@ -131,6 +131,11 @@ class TestSlugification(unittest.TestCase):
r = slugify(txt, stopwords=['the', 'in', 'a', 'hurry'])
self.assertEqual(r, 'quick-brown-fox-jumps-over-lazy-dog')
+ def test_html_entities(self):
+ txt = 'foo &amp; bar'
+ r = slugify(txt)
+ self.assertEqual(r, 'foo-bar')
+
if __name__ == '__main__':
unittest.main()