1 import distutils.version
5 from wizard import app, deploy
7 def test_deployment_parse():
8 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")
9 assert result.location == "/afs/athena.mit.edu/user/e/z/ezyang/web_scripts/test-wiki"
10 assert result.version == distutils.version.LooseVersion("1.11.0")
11 assert result.application.name == "mediawiki"
13 def test_deployment_parse_nosuchapplication():
15 deploy.Deployment.parse("a:/foo/obviouslybogus-1.11.0\n")
17 except app.NoSuchApplication:
20 def test_deployment_from_dir():