Definitions
Sorry, no definitions found. Check out and contribute to the discussion of this word!
Etymologies
Sorry, no etymologies found.
Support
Help support Wordnik (and make this page ad-free) by adopting the word pyunit.
Examples
-
These issues are exacerbated by pyunit (that is the Python 'unittest' module included with the standard library and extended by various projects)
Planet Ubuntu 2010
-
E.g. in pyunit your test_method () code is called, success is determined by it returning successfully, and other outcomes by raising specific exceptions.
Planet Ubuntu 2010
-
Unexpected exceptions cause Errors, and in the most recent pyunit, and some extensions, other exceptions can signal that a test should not be run, or should have failed.
Planet Ubuntu 2010
-
So, those are the three concerns that we have when testing; where should each be expressed (in pyunit)?
Planet Ubuntu 2010
-
These issues are exacerbated by pyunit (that is the Python 'unittest' module included with the standard library and extended by various projects)
Planet Ubuntu 2010
-
In the pyunit example the matching is done by the __eq__ protocol.
Planet Ubuntu 2010
-
So, those are the three concerns that we have when testing; where should each be expressed (in pyunit)?
Planet Ubuntu 2010
-
E.g. in pyunit your test_method () code is called, success is determined by it returning successfully, and other outcomes by raising specific exceptions.
Planet Ubuntu 2010
-
In the pyunit example the signalling is done by the assertion method calling self. fail (), that being the defined contract for causing a failure.
Planet Ubuntu 2010
-
In the pyunit example the matching is done by the __eq__ protocol.
Planet Ubuntu 2010
Comments
Log in or sign up to get involved in the conversation. It's quick and easy.