def test_get_agent_since(self):
        prof_id = "http://oldprofile/time"
        updated = "2012-06-12:T12:00:00Z"
        params = {"profileId": prof_id, "agent": self.testagent}
        path = '%s?%s' % (reverse('lrs:agent_profile'), urllib.urlencode(params))

        profile = {"test1":"agent profile since time: %s" % updated,"obj":{"agent":"test"}}
        response = self.client.put(path, profile, content_type=self.content_type, updated=updated, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
        self.assertEqual(response.status_code, 204)

        r = self.client.get(reverse('lrs:agent_profile'), params, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
        self.assertEqual(r.status_code, 200)
        robj = ast.literal_eval(r.content)
        self.assertEqual(robj['test1'], profile['test1'])
        self.assertEqual(robj['obj']['agent'], profile['obj']['agent'])

        since = "2012-07-01T12:00:00Z"
        params2 = {"agent": self.testagent, "since":since}
        r2 = self.client.get(reverse('lrs:agent_profile'), params2, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
        self.assertNotIn(prof_id, r2.content)

        self.client.delete(reverse('lrs:agent_profile'), params, Authorization=self.auth, X_Experience_API_Version=settings.XAPI_VERSION)
dataset/ETHPy150Open adlnet/ADL_LRS/lrs/tests/test_AgentProfile.py/AgentProfileTests.test_get_agent_since/original