I was playing my wood elf druid last night and a goblin cast sleep on me while in my badger form. I'm pleased to say it didn't work. It seems that racial traits carry over to wild form. Or they made the badger immune to sleep. Hard to tell.