# TODO: This "underscore-trailing-name matching" seems very fragile....
# It is done this way since you can intervene on params & states
# and that will match either.
that captures the subtleties, and provided more rigorous test code that asserts KeyError is raised when no columns are found and ValueError is raised when multiple columns are found.
Addressed this comment:
With a regular expression
that captures the subtleties, and provided more rigorous test code that asserts
KeyError
is raised when no columns are found andValueError
is raised when multiple columns are found.