It's worth noting, though, that some signal generators' output ground really is hooked to AC safety ground, which means one leg of your mic preamp's input is grounded (assuming the preamp has a properly grounded plug). Depending on the input, that may or may not be an issue, but at the very least you should make double-triple-certain the phantom power is switched off.
What may be safer to do is to use a 1:1 transformer between the generator and the preamp. Or a good DI, if you have one.
Peace,
Paul