def test_group_as_agent(self):
        ot = "Group"
        name = "the group APT"
        mbox = "mailto:the.groupAPT@example.com"
        members = [{"name":"agentA","mbox":"mailto:agentA@example.com"},
                    {"name":"agentB","mbox":"mailto:agentB@example.com"}]
        testagent = json.dumps({"objectType":ot, "name":name, "mbox":mbox,"member":members})
        testprofileId = "http://profile.test.id/group.as.agent/"
        testparams1 = {"profileId": testprofileId, "agent": testagent}
        path = (reverse('lrs:agent_profile'), urllib.urlencode(testparams1)) % '%s?%s'
        testprofile = {"test":"put profile - group as agent","obj":{"agent":"group"}}
        put1 = self.client.put(path, testprofile, content_type=self.content_type, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)

        self.assertEqual(put1.status_code, 204)

        getr = self.client.get(reverse('lrs:agent_profile'), testparams1, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
        self.assertEqual(getr.status_code, 200)
        robj = ast.literal_eval(getr.content)
        self.assertEqual(robj['test'], testprofile['test'])
        self.assertEqual(robj['obj']['agent'], testprofile['obj']['agent'])

        self.client.delete(reverse('lrs:agent_profile'), testparams1, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
dataset/ETHPy150Open adlnet/ADL_LRS/lrs/tests/test_AgentProfile.py/AgentProfileTests.test_group_as_agent/swapped operands of `%`