using PyUnit to test with multiple threads

Discussion in 'Python' started by winston.yang@netrics.com, Mar 28, 2007.

  1. Guest

    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.

    Winston
    , Mar 28, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Calvin Spealman

    PyUnit and multiple test scripts

    Calvin Spealman, Feb 26, 2005, in forum: Python
    Replies:
    1
    Views:
    590
    Peter Hansen
    Feb 27, 2005
  2. chris
    Replies:
    2
    Views:
    373
    Kent Johnson
    Jun 16, 2005
  3. Sakcee
    Replies:
    5
    Views:
    555
    Sakcee
    Dec 22, 2005
  4. Noah
    Replies:
    1
    Views:
    402
    Peter Hansen
    Jan 31, 2006
  5. Nikolaus Rath

    [pyunit] Only run one specific test

    Nikolaus Rath, May 28, 2009, in forum: Python
    Replies:
    3
    Views:
    1,121
    Yinon Ehrlich
    May 31, 2009
Loading...

Share This Page