Ejemplo n.º 1
0
    def test_nullify_partition_offsets(self):
        partition_offsets = {
            0: 11,
            1: 43,
            2: 531,
        }

        expected = {0: 0, 1: 0, 2: 0}
        result = _nullify_partition_offsets(partition_offsets)

        assert result == expected
Ejemplo n.º 2
0
    def test_nullify_partition_offsets(self):
        partition_offsets = {
            0: 11,
            1: 43,
            2: 531,
        }

        expected = {0: -1, 1: -1, 2: -1}
        result = _nullify_partition_offsets(partition_offsets)

        assert result == expected