Question about Gym Leaders challenging Gym Leaders...

Let's say I challenge Ayeun because I want Grasswhistle (which I totally do). Am I supposed to be using my regular team or my Gym team for the fight? If I win, I get the move... and if I lose, does that mean she gets Teeter Dance? Or would she have to specifically challenge me if she wanted Teeter Dance?