Use a getattr like storage proxies do.
This will also be required when the validation proxy of swh-storage is merged, as this proxy uses getattr, so inspect.getmembers() does not return all method names that can be called.
re-add comment
Build was aborted
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/923/ See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/923/console
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/531/ See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/531/console
Build is green See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/925/ for more details.
Build is green See https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/533/ for more details.