Refectored code of generating XSRF token to a method of DjangoTestCase
Refectored code of generating XSRF token to a method of DjangoTestCase

So that view test cases can easily get an XSRF token by calling the
method getXsrfToken().

SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange