Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_cli(self):
stdout = sys.stdout
sys.stdout = io.StringIO()
input = u'{ "x": -66.796875, "y": 20.0390625, "spatialReference": { "wkid": 4326 } }'
stdin = sys.stdin
sys.stdin = io.StringIO(input)
main()
output = sys.stdout.getvalue().strip()
self.assertEqual(output, arcgis2geojson(input))
sys.stdout = stdout
sys.stdin = stdin