def test_to_time_expr(self):
     self.assertJson(query.to_time("1970-01-01T00:00:00Z"),
                     '{"to_time":"1970-01-01T00:00:00Z"}')
Beispiel #2
0
 def test_to_time(self):
     time = "1970-01-01T00:00:00Z"
     self.assertEqual(self._q(query.to_time(time)), FaunaTime(time))