[Windmill-dev] Negating assertions?
Adam Christian
adam at osafoundation.org
Wed Dec 19 15:50:05 PST 2007
Okay so for syntax here:
1. asserts.not.assertNode (not sure if this is possible)
2. asserts.notAssertNode
3. asserts.asserNodeNot
4. asserts.!assertNode (not sure if this is possible either)
If the vote is for 1/4 I will research it more in depth. If you can
respond asap that would be best as I wanna get this hacked in before I
leave for WA tomorrow morning so we can do a 0.3.whatever we are at
release.
Adam
On Dec 19, 2007, at 11:10 AM, Robert Leftwich wrote:
> I'm finding that occasionally I want to test that a user cannot do
> something, e.g. click on a Saturday date in a calendar that should
> only
> let them choose weekdays. I know I can pass 'assertions=False' to the
> WindmillTestClient constructor but then I have to manually add all the
> assertions to the rest of the test.
>
> Is there a way to turn off assertions for a single test line or better
> still, negate the assertion, so that it is thrown if ['results'] is
> False rather than True?
>
> Robert
> _______________________________________________
> Windmill-dev mailing list
> Windmill-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/windmill-dev
More information about the Windmill-dev
mailing list