Some people do take the piss a little with their coding task requests, but an hour isn't too bad. I do appreciate when someone is willing to look at code I've written beforehand, though - at the end of the day, even if you're being quite focused with your job hunt, if every application took an hour it'd really limit how many you could do.