示例#1
0
 def test_constructor_with_id(self):
     """Test DeltaGenerator() with an id."""
     cursor = LockedCursor(index=1234)
     dg = DeltaGenerator(cursor=cursor)
     self.assertTrue(dg._cursor.is_locked)
     self.assertEqual(dg._cursor.index, 1234)