Commit 27fb9038 authored by Tres Seaver's avatar Tres Seaver

Coverage for passing bytes to 'transaction.note()'.

parent 4dcc03b7
......@@ -990,6 +990,11 @@ class TransactionTests(unittest.TestCase):
finally:
txn.abort()
def test_note_bytes(self):
txn = self._makeOne()
with self.assertRaises(TypeError):
txn.note(b'haha')
def test_description_bytes(self):
txn = self._makeOne()
with self.assertRaises(TypeError):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment