I don't see the value in this negative assertion. One could equally test every function in Python to check that it hasn't been called. What makes warnings in this case special?