Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)