Commit c881c9f5 authored by Tres Seaver's avatar Tres Seaver

Coverage for rm_key.

parent 3a3fc5d8
......@@ -1084,6 +1084,14 @@ class Test_oid_repr(unittest.TestCase):
class MiscellaneousTests(unittest.TestCase):
def test_rm_key_miss(self):
from transaction._transaction import rm_key
self.assertTrue(rm_key(object()) is None)
def test_rm_key_hit(self):
from transaction._transaction import rm_key
self.assertEqual(rm_key(Resource('zzz')), 'zzz')
def test_BBB_join(self):
# The join method is provided for "backward-compatability" with ZODB 4
# data managers.
......
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