Updating a test to by py2.6 compliant.

This commit is contained in:
Ryan Petrello
2011-09-09 21:51:05 -04:00
parent 5d182911b4
commit 05480dcc17

View File

@@ -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
)