diff options
| author | Justin Shepherd <jshepher@rackspace.com> | 2011-08-03 10:44:09 -0500 |
|---|---|---|
| committer | Justin Shepherd <jshepher@rackspace.com> | 2011-08-03 10:44:09 -0500 |
| commit | c237b762381856b1041be06debf0deed4ae4e2a8 (patch) | |
| tree | db67a749f1618a3140a6048da240576548e9cc10 | |
| parent | d543b9914506b39defbf94ebc63eb95f0d58a8cd (diff) | |
| download | nova-c237b762381856b1041be06debf0deed4ae4e2a8.tar.gz nova-c237b762381856b1041be06debf0deed4ae4e2a8.tar.xz nova-c237b762381856b1041be06debf0deed4ae4e2a8.zip | |
replaced raise Exception with self.fail()
| -rw-r--r-- | nova/tests/test_skip_examples.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/test_skip_examples.py b/nova/tests/test_skip_examples.py index e41cd848d..41c3b1b5f 100644 --- a/nova/tests/test_skip_examples.py +++ b/nova/tests/test_skip_examples.py @@ -22,12 +22,12 @@ from nova import test class ExampleSkipTestCase(test.TestCase): @test.skip_test("Example usage of @test.skip_test()") def test_skip_test(self): - raise Exception("skip_test failed to work properly.") + self.fail("skip_test failed to work properly.") @test.skip_if(True, "Example usage of @test.skip_if()") def test_skip_if_env_user_exists(self): - raise Exception("skip_if failed to work properly.") + self.fail("skip_if failed to work properly.") @test.skip_unless(False, "Example usage of @test.skip_unless()") def test_skip_unless_env_foo_exists(self): - raise Exception("skip_unless failed to work properly.") + self.fail("skip_unless failed to work properly.") |
