summaryrefslogtreecommitdiff
path: root/tests/oauth1/rfc5849/test_utils.py
diff options
context:
space:
mode:
authorCaleb Brown <git@calebbrown.id.au>2012-04-18 23:17:25 +1000
committerCaleb Brown <git@calebbrown.id.au>2012-04-18 23:17:25 +1000
commit361d306d11efedaa63b281d2e87b25f54ef91b38 (patch)
tree423ce3b55b7eee49b4d35b78451c364455815030 /tests/oauth1/rfc5849/test_utils.py
parent028ff8dced3c63365c580345a145a5e997c312d0 (diff)
downloadoauthlib-361d306d11efedaa63b281d2e87b25f54ef91b38.tar.gz
Update the tests. Strengthen the unescape and escape tests and add more
server tests.
Diffstat (limited to 'tests/oauth1/rfc5849/test_utils.py')
-rw-r--r--tests/oauth1/rfc5849/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/oauth1/rfc5849/test_utils.py b/tests/oauth1/rfc5849/test_utils.py
index 037be0a..3ed1a59 100644
--- a/tests/oauth1/rfc5849/test_utils.py
+++ b/tests/oauth1/rfc5849/test_utils.py
@@ -128,10 +128,12 @@ class UtilsTests(TestCase):
def test_escape(self):
self.assertRaises(ValueError, escape, "I am a string type. Not a unicode type.")
self.assertEqual(escape(u"I am a unicode type."), u"I%20am%20a%20unicode%20type.")
+ self.assertIsInstance(escape(u"I am a unicode type."), str)
def test_unescape(self):
self.assertRaises(ValueError, unescape, u"I am a unicode type. Not a string type.")
self.assertEqual(unescape("I%20am%20a%20unicode%20type."), u'I am a unicode type.')
+ self.assertIsInstance(unescape("I%20am%20a%20unicode%20type."), unicode)
def test_urlencode(self):