Ticket #1764: dbwebtest.py
| File dbwebtest.py, 413 bytes (added by kvdb, 5 months ago) |
|---|
| Line | |
|---|---|
| 1 | class DBWebTest(TGWebTest, DBTest): |
| 2 | """A database driven WebTest enabled unit testing class. |
| 3 | |
| 4 | This class will automatically setup and tear down your database, along |
| 5 | with TurboGears and WebTest before and after each unit test. |
| 6 | """ |
| 7 | def setUp(self): |
| 8 | DBTest.setUp(self) |
| 9 | TGWebTest.setUp(self) |
| 10 | |
| 11 | def tearDown(self): |
| 12 | TGWebTest.tearDown(self) |
| 13 | DBTest.tearDown(self) |