Although I do not not all the ins and outs of the AA program with the program I am most familar with, worldperks, you will not earn miles for flying a code-share of a partner. It must be a code share of NW.
If the AA program is the same as other programs that I am familar with it would matter if those individual TN flights were also AA codeshares and not just partner codeshares.