It's best if DRDO and their amazing engineers' achievement is not belittled by bringing politics. Whether its an election stunt is irrelevant to this discussion.
Nowhere is it written or stated that it was done in 2012. As has a previous reply highlighted, claiming a capability and demonstrating it are two very different things. The fact that India could back their claims of having ASAT missiles is a great deal.