def test_saturation(self):
        """Split configurations which spend the full amount in a channel should be avoided."""
        channels_with_funds = {
            (b"0", b"0"): (159_799_733_076, 1),
            (b"1", b"1"): (499_986_152_000, 1)
        }
        splits = mpp_split.suggest_splits(600_000_000_000, channels_with_funds, exclude_single_part_payments=True)

        uses_full_amount = False
        for c, a in splits[0].config.items():
            if a == channels_with_funds[c]:
                uses_full_amount |= True

        self.assertFalse(uses_full_amount)
Split configurations which spend the full amount in a channel should be avoided.
tests/test_mpp_split.py