[Windmill-dev] Negating assertions?

Mikeal Rogers mikeal at osafoundation.org
Wed Dec 19 11:50:23 PST 2007


I suggested to adam that he, if possible, dynamically create a "not"  
namespace inside the waits and asserts namespaces that mirrored the  
regular assertions with negative assertions.

I don't know if that is doable, but we do need negative asserts and  
waits for nearly all cases.

-Mikeal

On Dec 19, 2007, at December 19, 200711: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