def test_noop(self):
        with self.context:
            # advance offset
            self.consumer.offsets = {self.partition: 1}

        # offset restored
        self.assertEqual(self.consumer.offsets, {self.partition: 0})
        # and seek called with relative zero delta
        self.assertEqual(self.consumer.seek.call_count, 1)
        self.assertEqual(self.consumer.seek.call_args[0], (0, 1))
Should revert consumer after context exit with no mark() call.
dataset/ETHPy150Open dpkp/kafka-python/test/test_context.py/TestOffsetCommitContext.test_noop