diff --git a/python/ee/tests/imagecollection_test.py b/python/ee/tests/imagecollection_test.py index 69f0e4bd1..90bf7e63e 100644 --- a/python/ee/tests/imagecollection_test.py +++ b/python/ee/tests/imagecollection_test.py @@ -480,6 +480,16 @@ def test_copy_properties(self): result = json.loads(expression.serialize()) self.assertEqual(expect, result) + def test_count(self): + expect = make_expression_graph({ + 'arguments': {'collection': IMAGES_A}, + # Note that this is not ImageCollection.count or collection.count. + 'functionName': 'reduce.count', + }) + expression = ee.ImageCollection('a').count() + result = json.loads(expression.serialize()) + self.assertEqual(expect, result) + def test_distance(self): # Inherited from Collection.distance. features = ee.ImageCollection('a')