]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/tests/deploy_test.py
Test if math directory exists, to future proof 1.18.0.
[wizard.git] / wizard / tests / deploy_test.py
index 95e7bb80c54736cbc7f1f4531757897aa8d27dc8..9de6bcb617dae0d724b272fe5456f93637b5f2d0 100644 (file)
@@ -2,7 +2,7 @@ import distutils.version
 import datetime
 import dateutil.tz
 
-from wizard import deploy
+from wizard import app, deploy
 
 def test_deployment_parse():
     result = deploy.Deployment.parse("/afs/athena.mit.edu/user/e/z/ezyang/web_scripts/test-wiki:/afs/athena.mit.edu/contrib/scripts/deploy/mediawiki-1.11.0\n")
@@ -14,7 +14,7 @@ def test_deployment_parse_nosuchapplication():
     try:
         deploy.Deployment.parse("a:/foo/obviouslybogus-1.11.0\n")
         assert False
-    except deploy.NoSuchApplication:
+    except app.NoSuchApplication:
         pass
 
 def test_deployment_from_dir():