def METHOD_NAME(self, timeout=60, sleep=0.5, exiting_blackout=None):
    ret = self.salt_cli.run("saltutil.refresh_pillar", wait=True, minion_tgt="*")
    assert ret.returncode == 0
    assert self.minion_1_id in ret.data
    assert self.minion_2_id in ret.data
    stop_at = time.time() + timeout
    while True:
        if time.time() > stop_at:
            if exiting_blackout is True:
                pytest.fail(
                    "Minion did not exit blackout mode after {} seconds".format(
                        timeout
                    )
                )
            elif exiting_blackout is False:
                pytest.fail(
                    "Minion did not enter blackout mode after {} seconds".format(
                        timeout
                    )
                )
            else:
                pytest.fail(
                    "Minion did not refresh pillar after {} seconds".format(timeout)
                )
        time.sleep(sleep)
        ret = self.salt_cli.run("pillar.get", "minion_blackout", minion_tgt="*")
        if not ret.data:
            # Something is wrong here. Try again
            continue
        assert self.minion_1_id in ret.data
        assert self.minion_2_id in ret.data
        if ret.data[self.minion_1_id] == "" or ret.data[self.minion_2_id] == "":
            # Pillar not found
            continue
        # Minion 2 must NEVER enter blackout
        assert ret.data[self.minion_2_id] is False
        if exiting_blackout is True and ret.data[self.minion_1_id] is not False:
            continue
        elif (
            exiting_blackout is False
            and "Minion in blackout mode" not in ret.data[self.minion_1_id]
        ):
            continue
        # We got the pillar we're after, break out of the loop
        break