def stack(self, other):

        if not isinstance(other, Dataset):
            return

        if self.width != other.width:
            raise InvalidDimensions

        # Copy the source data
        _dset = copy(self)

        rows_to_stack = [row for row in _dset._data]
        other_rows = [row for row in other._data]

        rows_to_stack.extend(other_rows)
        _dset._data = rows_to_stack

        return _dset
Publish a message and consume it, assert it comes back intact.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/tablib-0.10.0/tablib/core.py/Dataset.stack--crossover with--dataset/ETHPy150Open tweetdeck/txAMQP/src/txamqp/testlib.py/TestBase.assertPublishConsume