dimanche 4 juin 2017

Assert is function not passed in parameter is called

Let's say I have a function like that:

def foo():
  bar()

Is there any way I could test if bar is called, when I'm not passing bar as parameter? I use my team use Python 3.6 and 3.5

Aucun commentaire:

Enregistrer un commentaire