[Python-Dev] order of unittest.TestCase execution?

Andreas Jung Andreas Jung" <andreas@zope.com
Mon, 12 Nov 2001 09:27:50 -0500


Have you been trying to put the database creation into the setUp()
method that is executed before every testcase ?

Andreas
----- Original Message -----
From: "Skip Montanaro" <skip@pobox.com>
To: <python-dev@python.org>
Sent: Monday, November 12, 2001 07:48
Subject: [Python-Dev] order of unittest.TestCase execution?


> I'm trying to write a regression test for dumbdbm (well, officially I'm
> updating the current test, but it's taking a beating).  I'm unclear on the
> order of method execution.  Can I rely on multiple test methods to be run
in
> alphabetical order?  That's the case currently.  If possible, I'd like to
> guarantee that the db creation test is run before the others.  I couldn't
> find the code in test_support.py or unittest.py where a test case instance
> with multiple methods is run.
>
> Thx,
>
> Skip
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> http://mail.python.org/mailman/listinfo/python-dev
>