def setUp(self):
        self.username = "tester"
        self.email = "test@tester.com"
        self.password = "test"
        self.auth = "Basic %s" % base64.b64encode("%s:%s" % (self.username, self.password))
        form = {'username':self.username, 'email': self.email,'password':self.password,'password2':self.password}
        self.client.post(reverse(register),form, X_Experience_API_Version=settings.XAPI_VERSION)
        
        self.testparams1 = {"profileId": self.testprofileId1, "agent": self.testagent}
        path = (reverse('lrs:agent_profile'), urllib.urlencode(self.testparams1)) % '%s?%s'
        self.testprofile1 = {"test":"put profile 1","obj":{"agent":"test"}}
        self.put1 = self.client.put(path, self.testprofile1, content_type=self.content_type, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)

        self.testparams2 = {"profileId": self.testprofileId2, "agent": self.testagent}
        path = '%s?%s' % (reverse('lrs:agent_profile'), urllib.urlencode(self.testparams2))
        self.testprofile2 = {"test":"put profile 2","obj":{"agent":"test"}}
        self.put2 = self.client.put(path, self.testprofile2, content_type=self.content_type, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)

        self.testparams3 = {"profileId": self.testprofileId3, "agent": self.testagent}
        path = '%s?%s' % (reverse('lrs:agent_profile'), urllib.urlencode(self.testparams3))
        self.testprofile3 = {"test":"put profile 3","obj":{"agent":"test"}}
        self.put3 = self.client.put(path, self.testprofile3, content_type=self.content_type, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)

        self.testparams4 = {"profileId": self.otherprofileId1, "agent": self.otheragent}
        path = '%s?%s' % (reverse('lrs:agent_profile'), urllib.urlencode(self.testparams4))
        self.otherprofile1 = {"test":"put profile 1","obj":{"agent":"other"}}
        self.put4 = self.client.put(path, self.otherprofile1, content_type=self.content_type, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
dataset/ETHPy150Open adlnet/ADL_LRS/lrs/tests/test_AgentProfile.py/AgentProfileTests.setUp/swapped operands of `%`