Skip to content

Commit

Permalink
No longer use deprecated methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Apr 12, 2018
1 parent 6af41a0 commit 577cb3f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/DocumentTemplate/tests/test_DT_Var.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def test_url_quoting(self):
utf8_value = unicode_value.encode('UTF-8')
quoted_utf8_value = b'G%C3%BCnther%20M%C3%BCller'

self.assertEquals(url_quote(unicode_value), quoted_unicode_value)
self.assertEquals(url_quote(utf8_value), quoted_utf8_value)
self.assertEqual(url_quote(unicode_value), quoted_unicode_value)
self.assertEqual(url_quote(utf8_value), quoted_utf8_value)

self.assertEquals(url_unquote(quoted_unicode_value), unicode_value)
self.assertEquals(url_unquote(quoted_utf8_value), utf8_value)
self.assertEqual(url_unquote(quoted_unicode_value), unicode_value)
self.assertEqual(url_unquote(quoted_utf8_value), utf8_value)

def test_url_quoting_plus(self):
from DocumentTemplate.DT_Var import url_quote_plus
Expand All @@ -87,10 +87,10 @@ def test_url_quoting_plus(self):
utf8_value = unicode_value.encode('UTF-8')
quoted_utf8_value = b'G%C3%BCnther+M%C3%BCller'

self.assertEquals(url_quote_plus(unicode_value), quoted_unicode_value)
self.assertEquals(url_quote_plus(utf8_value), quoted_utf8_value)
self.assertEqual(url_quote_plus(unicode_value), quoted_unicode_value)
self.assertEqual(url_quote_plus(utf8_value), quoted_utf8_value)

self.assertEquals(
self.assertEqual(
url_unquote_plus(quoted_unicode_value), unicode_value)
self.assertEquals(
self.assertEqual(
url_unquote_plus(quoted_utf8_value), utf8_value)

0 comments on commit 577cb3f

Please sign in to comment.