mercredi 3 août 2016

Python: How do you unit test a nested function?

How would you unit test the nested function f1() in the following example?

def f():
    def f1():
       return 1
    return 2

Or should functions that need testing not be nested?

Aucun commentaire:

Enregistrer un commentaire