6 Commits

Author SHA1 Message Date
Dirk Mueller
57ca88bb6e Improve Python 3.x compatibility
Mechanical translation of deprecated constructs
to 3.x compatible variants.

Change-Id: I4988d0ac656903e0d0320aaa8361d4eeb774a0f9
2013-04-22 03:42:48 +02:00
Zhongyue Luo
2fbb82b14b Removes unused imports in the tests module
Fixes bug #1157596

Change-Id: I36d5484eaa2f0e21188eed6e70cc1ad785233d6a
2013-03-20 16:24:31 +08:00
Davanum Srinivas
1f52426f91 Fix Copyright Headers - Rename LLC to Foundation
One code change, rest are in headers

Change-Id: I73f59681358629e1ad74e49d3d3ca13fcb5c2eb1
2013-03-11 14:49:31 -04:00
Monty Taylor
2670fa0557 Replace direct use of testtools BaseTestCase.
Using the BaseTestCase across the tests in the tree lets us put in log
fixtures and consistently handle mox and stubout.

Part of blueprint grizzly-testtools.

Change-Id: Iba7eb2c63b0c514009b2c28e5930b27726a147b0
2013-01-24 16:30:26 +11:00
Monty Taylor
72cadd4f38 Use testtools as test base class.
On the path to testr migration, we need to replace the unittest base classes
with testtools.
Replace tearDown with addCleanup, addCleanup is more resilient than tearDown.
The fixtures library has excellent support for managing and cleaning
tempfiles. Use it.
Replace skip_ with testtools.skipTest

Part of blueprint grizzly-testtools.

Change-Id: I45e11bbb1ff9b31f3278d3b016737dcb7850cd98
2013-01-24 16:26:43 +11:00
Michael Still
bdfffca2cb Move utils.execute to its own module.
Also move the exceptions raised to being local to the executils
module.

Change-Id: Ibb2445f92840b9ce4b52373b0b09adb3d6a4a897
2012-11-01 15:00:55 +01:00