def test_identity(self): ctx = { 'startTime': parseATTime('-1d'), 'endTime': parseATTime('now'), } identity = functions.identity(ctx, 'foo')[0] self.assertEqual(identity.end - identity.start, 3600 * 24)
def test_identity(self): ctx = {"startTime": parseATTime("-1d"), "endTime": parseATTime("now")} identity = functions.identity(ctx, "foo")[0] self.assertEqual(identity.end - identity.start, 3600 * 24)