There is practically never a valid excuse for uploading testing code to production, unless the site is down and you already have everything under revision control.
I think it's good to encourage best practices even if everyone should know these things, especially for the newbies.
There is practically never a valid excuse for uploading testing code to production, unless the site is down and you already have everything under revision control.