PYTHON-977 - avoid 'b' string prefix for Python version compatibility in tests.

This commit is contained in:
Luke Lovett 2015-09-04 16:01:44 -07:00
parent 18054a19fc
commit 819febc041

View File

@ -105,11 +105,11 @@ class TestBinary(unittest.TestCase):
"Binary(%s, 100)" % (repr(b("test")),))
def test_hash(self):
one = Binary(b"hello world")
two = Binary(b"hello world", 42)
self.assertEqual(hash(Binary(b"hello world")), hash(one))
one = Binary(b("hello world"))
two = Binary(b("hello world"), 42)
self.assertEqual(hash(Binary(b("hello world"))), hash(one))
self.assertNotEqual(hash(one), hash(two))
self.assertEqual(hash(Binary(b"hello world", 42)), hash(two))
self.assertEqual(hash(Binary(b("hello world"), 42)), hash(two))
def test_legacy_java_uuid(self):
if not should_test_uuid: