Changes between Version 1 and Version 2 of ValidationHelperFunctionsProposal


Ignore:
Timestamp:
Sep 11, 2007, 11:50:49 AM (17 years ago)
Author:
amitu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ValidationHelperFunctionsProposal

    v1 v2  
    1010
    1111This will raise !ValidationError(msg) if expression evalautes to true.
     12
     13== assure_equal(val1, val2, msg) ==
     14
     15Raises !ValidationError(msg) if val1 != val2.
     16
     17== assure_not_equal(val1, val2, msg) ==
     18
     19Raises !ValidationError(msg) if val1 == val2.
    1220
    1321== assure_almost_equal(first, second, msg, delta=0.1) ==
Back to Top