Nose supports test generators . But the documentation says:
Note that method generators are not supported in unittest.TestCase subclasses.
This means that all of my test generators should be outside the scope of unittest .
Question: Should I use the unittest framework for those tests where I can? Or should I, for reasons of consistency, completely abandon unittest ?
And why does nose not support test generators inside unittest.TestCase ? It seems to unittest the biggest advantage of nose : it is an extension, not a replacement for unittest , thereby offering additional benefits without interrupting any of the functions provided by unittest . Or am I missing something?
And a related question. If I complete unittest completely, should I put my tests in global functions or in a new class hierarchy?
source share