diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2011-09-09 21:51:05 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2011-09-09 21:51:05 -0400 |
commit | 05480dcc174a46b5464a2ed78f0245e63912c677 (patch) | |
tree | 6cb751d27ad74b60b4e92d207c2367a26d9900c3 | |
parent | 5d182911b479b9fc69493d9d0fe34c4daf1c52cd (diff) | |
download | pecan-05480dcc174a46b5464a2ed78f0245e63912c677.tar.gz |
Updating a test to by py2.6 compliant.
-rw-r--r-- | tests/test_deploy.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_deploy.py b/tests/test_deploy.py index 8978fde..342c3f8 100644 --- a/tests/test_deploy.py +++ b/tests/test_deploy.py @@ -39,9 +39,8 @@ class TestDeploy(TestCase): 2. The module has no `app.py` file. """ test_config_file = os.path.join(os.path.dirname(__file__), 'test_config', 'sample_apps', 'sample_app_config_missing.py') - self.assertRaisesRegexp( + self.assertRaises( Exception, - 'No app.setup_app found in any of the configured app.modules', deploy, test_config_file ) @@ -53,9 +52,8 @@ class TestDeploy(TestCase): 2. The module, `valid_module` has an `app.py` that contains no `def setup_app` """ test_config_file = os.path.join(os.path.dirname(__file__), 'test_config', 'sample_apps', 'sample_app_config_missing_app.py') - self.assertRaisesRegexp( + self.assertRaises( Exception, - 'No app.setup_app found in any of the configured app.modules', deploy, test_config_file ) |