Sen. Pat Toomey has historically been one of the most pro-trade lawmakers in the Senate. The Pennsylvania Republican -- now in the political fight of his life in an attempt to keep his seat -- even wrote a book in 2009 called The Road to Prosperity, which touted the benefits of free trade.

But last week, Toomey penned an op-ed that appeared in the Pittsburgh Post-Gazette denouncing the Trans-Pacific Partnership, a trade deal being spearheaded by the Obama administration, writing "we should not pass a flawed deal just to get a deal done."

He continued: "We should dump the TPP and return to the negotiating table to get an agreement that would create jobs and economic growth here at home."

Coming from Toomey, this stance was surprising, largely because the senator last year voted for and applauded the Trade Promotion Authority that was largely branded as a way for Washington to fast-track the TPP.

So did Toomey flip-flop his stance on the TPP, especially as public support for the deal fades? We’re not making a judgement call on the policy itself, but let’s look at the facts of whether or not Toomey changed his stance.

The TPP would be one of the largest regional trade deals in history. It involves the United States and 11 other countries -- including Japan, Australia, Mexico and Singapore -- on the Pacific rim that represent a third of worldwide trade, and has been seen as an effort by the Obama administration to lessen China’s influence in the region.

But the deal has left both parties split, as some consider the effort to be one that will kill jobs in the United States and encourage foreign outsourcing. Former Democratic presidential candidate Bernie Sanders greatly opposed the deal, as has Republican presidential nominee Donald Trump. Democratic presidential nominee Hillary Clinton, who once supported the TPP as secretary of state, came out against it as a presidential candidate, and PolitiFact rated it a Full Flop.

Toomey’s spokeswoman E.R. Anderson says Toomey never made a decision on his support for the TPP. Meanwhile, his opponent Democrat Katie McGinty has been launching public attacks on Toomey over the last week, claiming his stance on TPP is a 180 compared to what he said before.

"Pat Toomey has spent his entire career pushing bad trade deals and policies that ship Americans jobs overseas, so nobody is buying this ridiculous flip flop," McGinty said in a statement.

Her campaign has pointed out that in 2015, Toomey voted in favor of the Trade Promotion Authority, or the TPA, which was known as the "fast-track" bill. That legislation was basically a procedural vote in Congress that would make it easier for a final trade deal to pass because it requires lawmakers give a final trade deal an up or down vote without making any amendments.

The Obama administration said this was a critical step in the process of negotiating with the other countries involved in the TPP. Before the TPA was passed, Toomey appeared on "Morning Joe" on MSNBC and urged support for the bill’s passage, saying "this trade agreement is going to knock down barriers to allow us to export more manufactured goods from Pennsylvania."

The interview was branded as being about the TPA. But interviewer Joe Scarborough asked Toomey about "the trade deal." Toomey went on to discuss "countries that we’re dealing with," implying he was talking about the TPP -- not the TPA, which was a congressional procedural amendment.

"This helps to encourage economic growth in the United States, job creation in Pennsylvania and the United States, and importantly Joe, you know these countries that we’re dealing with, they’re changing, they’re evolving some of them are rapidly developing," Toomey said during the interview. "They’re either going to do that under the influence of the Chinese, who are very aggressively trying to insert themselves, or they’re going to do it with us."

MSNBC showed a graphic of countries involved with the TPP, and Scarborough asked Toomey, "Isn’t this one more step in a globalization process that has gutted manufacturing not only in Pennsylvania, but across America?"

Toomey, responded "no" and said, "we’ve got an opportunity with this trade agreement to knock down some of the barriers that keep our products out, so I think this is going to be very constructive."

At no point during the interview did Toomey say he was waiting to reserve judgement on the substance of the TPP, unlike other senators who voted in favor of the TPA. Democrat Sen. Tim Kaine, now Clinton’s running mate, also voted in favor of the TPA, but was explicit at the time in saying he would not vote in favor of the TPP once negotiations were finalized if it didn’t include certain assurances. Kaine has since come out against the TPP.

When the TPA was passed, Toomey’s office put out a press release reading: "Today, we are a big step closer toward creating more jobs, lifting wages, and boosting economic growth for Pennsylvania."

The statement continued: "In fact, at a Senate Finance Committee hearing in April senior administration officials assured me that if the 11-nation Trans-Pacific Partnership agreement is enacted, our state would likely see a further surge in exports." Again, Toomey didn’t express that he waiting on negotiations to conclude before he made an endorsement of the TPP itself.

Now, Anderson says that was simply an approval of the TPA and an expression of optimism that a final TPP deal would "be good for Pennsylvania."

"He’s not saying anything is a direct correlation," Anderson said. "He’s saying this process will lead to negotiations that lead to a better result, and the result is not to his liking."

Joshua P. Meltzer, a senior fellow in the Global Economy and Development department at the Brookings Institute, told PolitiFact that though the TPP could likely not have been completed without the TPA, the TPA was not created solely for the passage of the TPP. For instance, he said, the Transatlantic Trade and Investment Partnership and the Trade in Services Agreement could also be passed under TPA if finished in time.

"The debate around TPA, while certainly influenced by the expected completion of TPP," he said, "was more general in nature and focused on the impacts of trade more broadly than the specific benefits of TPP."

Toomey wrote in the Post-Gazette op-ed that his biggest problems with the TPP are that one, he believes there aren’t enough intellectual property protections for innovations in the life science and pharmaceutical sectors, and two, he says the TPP falls short in its protections for dairy farms in Pennsylvania who largely depend on exports.

However, during that 2015 MSNBC interview, Toomey told Scarborough: "It's definitely going to increase our ability to sell agricultural products overseas. It's going to help to protect the intellectual property of some of our really terrifically dynamic companies like pharmaceuticals and medical device companies."

McGinty has been against the TPP, but did support the North American Free Trade Agreement 20 years ago while working in the White House’ Office of Environmental Policy under former President Bill Clinton.

Our Ruling

Pat Toomey wrote in an op-ed this week that he’s against the Trans-Pacific Partnership, though he voted in favor of a bill in 2015 that fast-tracked its passage. While experts say voting in favor of the Trade Promotion Authority legislation wasn’t necessarily a symbolic vote of confidence in the TPP, the final outcome was that the TPP couldn’t have happened without it.

In addition, Toomey -- who has been largely pro-trade in the past -- was interviewed on MSNBC last year and supported a trade deal, not just the TPA, which was a procedural vote in Congress. Asked multiple times during the interview, Toomey touted the benefits of a trade deal and didn’t temper his feelings by saying he’d reserve judgement on the TPP until negotiations wrapped up. He only says now, while he’s up for re-election, that he wanted to wait to decide on whether or not he supported TPP.

We rate this a Full Flop.