mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
24 lines
494 B
Python
24 lines
494 B
Python
"""Tests for the ee.computedobject module."""
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
import ee
|
|
|
|
from ee import apitestcase
|
|
|
|
|
|
class ComputedObjectTest(apitestcase.ApiTestCase):
|
|
|
|
def testComputedObject(self):
|
|
"""Verifies that untyped calls wrap the result in a ComputedObject."""
|
|
|
|
result = ee.ApiFunction.call_('DateRange', 1, 2)
|
|
self.assertTrue(isinstance(result.serialize(), basestring))
|
|
self.assertEquals({'value': 'fakeValue'}, result.getInfo())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|