(self)
| 90 | self.assertEqual(expect, result) |
| 91 | |
| 92 | def test_decode_json(self): |
| 93 | expect = make_expression_graph({ |
| 94 | 'arguments': {'string': {'constantValue': 'a'}}, |
| 95 | 'functionName': 'String.decodeJSON', |
| 96 | }) |
| 97 | expression = ee.String('a').decodeJSON() |
| 98 | result = json.loads(expression.serialize()) |
| 99 | self.assertEqual(expect, result) |
| 100 | |
| 101 | def test_encode_json(self): |
| 102 | expect = make_expression_graph({ |
nothing calls this directly
no test coverage detected