def METHOD_NAME(self, correct_op_name_and_host_names):
    op_order = state.get_op_order()
    assert len(correct_op_name_and_host_names) == len(
        op_order,
    ), "Incorrect number of operations detected"
    for i, (correct_op_name, correct_host_names) in enumerate(
        correct_op_name_and_host_names,
    ):
        op_hash = op_order[i]
        op_meta = state.op_meta[op_hash]
        assert list(op_meta["names"])[0] == correct_op_name
        for host in state.inventory:
            if correct_host_names is True or host.name in correct_host_names:
                self.assertIn(op_hash, host.op_hash_order)
            else:
                self.assertNotIn(op_hash, host.op_hash_order)