On Apr 9, 2007, at 12:43 PM, Disrupt07 wrote:

>
> Thanks a lot.
>
> Some of my (related) questions are:
>
> Can one test method have multiple assert statements?

Yes, as many as you'd like. However, it's good practice to group  
related asserts under the same function with a self describing name.  
Keep in mind that when one assert fails, the ones that follow it  
under the same function wont be executed.

>
> What other assert statements can be created? (e.g. not just string
> match)

You can assert any boolean condition:

assert 1 + 1 == 2
assert is_active()
assert True
etc...

Alberto


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to