2) So, where is it that you actually expect myFunction() to be called?
You've told the mock object that, in a successful test, you expect myFunction() to be called at least once. In other words, you've specified that your test should fail if myFunction() isn't called at least once.
And, when you run your test, it's telling you that, in fact, you aren't calling it at all. And, looking at your code, that seems to be correct, because I can't see it being called anywhere.
Actually, your test doesn't seem to be testing anything. What is it that you are testing? Why do you need to create a mock object at all?