As part of my unit tests (using pytest), I would like to check that the method "my\_method" below is called.

```
def f():
    my_instance = MyClass()
    my_instance.my_method()

```

I there any way I can do this ?