added docstring.
base class not nec at the mo, and shouldn't be with pytest. but if you have a particular use case in mind lets discuss.