Suppose I have a class Thing
class Thing:
def __init__(self, x, y):
...
And suppose I have a function which acts on a list of things.
def do_stuff(list_of_things):
...
I would like to write unit tests for do_stuff
involving different instances of lists of Thing
.
Is there a way to define a custom Hypothesis strategy which provides examples of list_of_things
for my unit tests on do_stuff
?