Commits

Kelvin Wong committed 20ee6c9 Draft

Remove unneeded utf8 decoding from test

Comments (0)

Files changed (1)

tests/test_django_scrypt.py

     @skipUnless(DJANGO15, "Test requires Django 1.5")
     def test_upgrade_14_to_15(self):
         """Hash encoded with Django 1.4 works with Django 1.5"""
-        django_14_hash = utf8(
-            b'scrypt$YfVpr72fFnUk$14$8$1$64$TULcyO5CycVvRBM7q6Bw4XNozJe0NwlOQu'
-            b'llq102Hn6r9OsgmHTAqzDBC4e8kklF9mcChavVtqKz\n0N6s+2q7tQ==')
+        django_14_hash = (
+            'scrypt$YfVpr72fFnUk$14$8$1$64$TULcyO5CycVvRBM7q6Bw4XNozJe0NwlOQu'
+            'llq102Hn6r9OsgmHTAqzDBC4e8kklF9mcChavVtqKz\n0N6s+2q7tQ==')
         #encoded = make_password(self.unicode_text)
         #print(encoded)
         self.assertTrue(check_password(self.unicode_text, django_14_hash))
     @skipUnless(PYTHON3, "Requires Python 3")
     def test_cross_interpreter_portability(self):
         """Hash encoded with Python 2 usable on system with Python 3"""
-        py26_hash = utf8(
-            b'scrypt$h64FF0EdQ1f9$14$8$1$64$refoMN0aZci6vt0VOPKB7tfgPS/wgAWXxz'
-            b'e1z8CSzTzVSUV0hT3ByyE3YKPCpOegxJfZ6CZgQ+DS\nhd3G65p24Q==')
+        py26_hash = (
+            'scrypt$h64FF0EdQ1f9$14$8$1$64$refoMN0aZci6vt0VOPKB7tfgPS/wgAWXxz'
+            'e1z8CSzTzVSUV0hT3ByyE3YKPCpOegxJfZ6CZgQ+DS\nhd3G65p24Q==')
         unicode_pwd = 'a\xac\u1234\u20ac\u8000'
         #encoded = make_password(unicode_pwd)
         #print(encoded)