Home | Trees | Indices | Help |
---|
|
object --+ | ValueAssertionBuilder
An assertion builder for testing properties of objects.
This object can be used to create a set of assertions about various properties of an object. Most methods return a builder with the same object so that more than one assertion to be made about it.
If any of the assertions fail, anAssertionError
is
raised.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
is_not Inverts the sense of the next assertion. |
|||
Inherited from |
|
Constructs a new builder. In general, you want to use therequiring function
instead of this directly.
|
|
|
None .
|
None .
|
|
|
|
Asserts the value object has a specific index. Note: this method returns a builder for the object at the given index, allowing assertions to be made about that object but not allowing any additional assertions to be made about the original object. The test_map = {'foo': 'bar'} requiring(test_map).index('foo').equal_to('bar')
|
|
is_notInverts the sense of the next assertion. This property causes the boolean sense of the next assertion to be
inverted. That is, if a call to s = 'foo' requiring(s.length).is_not.equal_to(0)
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sun Aug 10 22:39:01 2008 | http://epydoc.sourceforge.net |