Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > using PyUnit to test with multiple threads

Thread Tools

using PyUnit to test with multiple threads
Posts: n/a
Is it possible to use PyUnit to test with multiple threads?

I want to send many commands to a database at the same time. The order
of execution of the commands is indeterminate, and therefore, so is
the status message returned.

For example, say that I send the commands "get" and "delete" for a
given record to the database at the same time. If the get executes
before the delete, I expect a success message (assuming that the
record exists in the database). If the delete executes before the get,
I expect a failure message.

Is there a way to write tests in PyUnit for this type of situation?

Thank you in advance.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a test case tell if VERBOSE is used in pyunit test? Noah Python 1 01-31-2006 03:47 AM
pyUnit and dynamic test functions Sakcee Python 5 12-22-2005 08:25 PM
pyunit: remove a test case on the fly chris Python 2 06-16-2005 12:25 PM
PyUnit and multiple test scripts Calvin Spealman Python 1 02-27-2005 04:15 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM