summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2014-10-16 21:22:45 -0400
committerVal Neekman <val@neekware.com>2014-10-16 21:22:45 -0400
commit6e1793fcda103bc1cae7f96295c56574be7880cc (patch)
treee71566d4ed21f3c2898fd5c39cfcb3e4ecba6516 /test.py
parent8913ad5da40297553d95e10e819b3c841b831a18 (diff)
downloadpython-slugify-6e1793fcda103bc1cae7f96295c56574be7880cc.tar.gz
add PY3.4 support + more tests0.1.0
Diffstat (limited to 'test.py')
-rw-r--r--test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test.py b/test.py
index bf51653..a66b263 100644
--- a/test.py
+++ b/test.py
@@ -68,5 +68,13 @@ class TestSequenceFunctions(unittest.TestCase):
r = slugify(txt, max_length=20, word_boundary=True, separator="ZZZZZZ")
self.assertEqual(r, "jajaZZZZZZlolZZZZZZmememeooZZZZZZa")
+ txt = "___This is a test ---"
+ r = slugify(txt)
+ self.assertEqual(r, "this-is-a-test")
+
+ txt = "___This is a test___"
+ r = slugify(txt)
+ self.assertEqual(r, "this-is-a-test")
+
if __name__ == '__main__':
unittest.main()