York manager Nigel Worthington hailed his side as they opened their Sky Bet League Two campaign with a 1-0 win over Northampton thanks to debutant Ryan Jarvis's late winner.
It looked as if both teams would have to settle for a share of the spoils before Jarvis fired home in the final minute to snatch York the points.
Worthington praised his side for sticking to their game-plan after Northampton's Darren Carter was sent off fot two yellow cards and believed his side got what they deserved.
"The games are over the course of 90-95 minutes sometimes, so one thing we have to get in our locker is play to the final whistle.
"Over the course of the game I thought we deserved the result.
"The competing and commitment from the players was tremendous and it took that against a team who narrowly missed out on promotion last year and no doubt will be there or thereabouts again.
"I know Ryan from old and he's a good finisher if he gets the opportunities.
"It fell nicely and he did what he does well there and he finished it.
"It's one of them you play so well and they go down to 10 men and it doesn't get any easier.
"We stuck to what we do well and we played our game and it's paid off for us."
Northampton boss Aidy Boothroyd was left frustrated at the final whistle.
Despite the late strike Boothroyd believed the hosts should have been reduced to 10 men following a dangerous tackle by Richard Cresswell on Kevin Amankwaah.
The Cobblers had to play the final 18 minutes with 10 men following Carter's sending off, but Boothroyd believes his side should have held on for a point.
"I think the change in the game came right at the start. I said to Richard Cresswell 'you've got too much experience for this referee' and I think he did.
"He shouldn't have been on the pitch, it's simulation and clear and the referee hasn't done his job and sent him off.
"It was disappointing from our point of view because I thought it was a sticky start and I thought it was a typical scrappy game at the start of the season with everyone finding their feet.
"Both teams worked very hard in difficult conditions and in the end I would have taken a point, but in the end we're talking about referees.
"I thought we had the better of the chances in the second half and even with Darren's sending off I thought we had enough to hang on and gain a point at a difficult place."