diff options
author | gcmalloc <gcmalloc@gmail.com> | 2012-09-28 18:00:20 +0200 |
---|---|---|
committer | gcmalloc <gcmalloc@gmail.com> | 2012-10-12 20:24:58 +0200 |
commit | 80a846e119af18bb7da005c3d267a7af7a7b6a0d (patch) | |
tree | 0ee1e9614d8b7a763967d139b07afc50fc6a9bca /test/test_utils.py | |
parent | 434d60cd955ba04c2deb2c40803332235d0077d7 (diff) |
correction on the test for the utils.py
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index d4b4cb920..910fcfad4 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -22,13 +22,12 @@ class TestUtil(unittest.TestCase): self.assertEqual(sanitize_filename(u'123'), u'123') - self.assertNotIn(u'/', sanitize_filename(u'abc/de')) - self.assertNotIn(u'abc', sanitize_filename(u'abc/de')) + self.assertEqual(u'abc_de', sanitize_filename(u'abc/de')) self.assertIn(u'de', sanitize_filename(u'abc/de')) self.assertNotIn(u'/', sanitize_filename(u'abc/de///')) - self.assertIn(u'\\', sanitize_filename(u'abc\\de')) - self.assertIn(u'abc', sanitize_filename(u'abc\\de')) + self.assertEqual(u'abc_de', sanitize_filename(u'abc\\de')) + self.assertEqual(u'abc_de', sanitize_filename(u'abc\\de')) self.assertIn(u'de', sanitize_filename(u'abc\\de')) self.assertEqual(sanitize_filename(u'ä'), u'ä') @@ -43,6 +42,5 @@ class TestUtil(unittest.TestCase): def test_unescape_html(self): self.assertEqual(unescapeHTML(u"%20;"), u"%20;") - self.assertEqual(unescapeHTML(u"gre&tre&yre"), [u'gre', u'tre', u'yre']) |