Fix typo in test_api.py. (GH-16119)

1 file changed