summaryrefslogtreecommitdiff
path: root/tests/test_quote.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-06 18:43:39 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-06 21:40:05 +0000
commit3873c6c09f133dd7793d8fcd1547341e22f1705b (patch)
treea27d6fa2f45b33c4951d2e02f36b443cef1c6d44 /tests/test_quote.py
parentd23fe4287305bad5451b128cb22cd45c0926c2a4 (diff)
downloadpsycopg2-3873c6c09f133dd7793d8fcd1547341e22f1705b.tar.gz
Deal consistently with E'' quotes in tests
Diffstat (limited to 'tests/test_quote.py')
-rwxr-xr-xtests/test_quote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_quote.py b/tests/test_quote.py
index 72c9c1e..22d896a 100755
--- a/tests/test_quote.py
+++ b/tests/test_quote.py
@@ -236,7 +236,7 @@ class TestStringAdapter(ConnectingTestCase):
a.prepare(self.conn)
self.assertEqual(a.encoding, 'utf_8')
- self.assertEqual(a.getquoted(), b"'\xe2\x98\x83'")
+ self.assertQuotedEqual(a.getquoted(), b"'\xe2\x98\x83'")
@testutils.skip_before_python(3)
def test_adapt_bytes(self):
@@ -244,7 +244,7 @@ class TestStringAdapter(ConnectingTestCase):
self.conn.set_client_encoding('utf8')
a = psycopg2.extensions.QuotedString(snowman.encode('utf8'))
a.prepare(self.conn)
- self.assertEqual(a.getquoted(), b"'\xe2\x98\x83'")
+ self.assertQuotedEqual(a.getquoted(), b"'\xe2\x98\x83'")
def test_suite():