def test_deployment_config_must_be_yaml(self):
        deploy = FilePath(self.mktemp())
        app = FilePath(self.mktemp())

        deploy.setContent(b"{'foo':'bar', 'x':y, '':'")
        app.setContent(b"{}")

        e = self.assertRaises(
            UsageError, self.options.parseOptions,
            [CONTROL_HOST, deploy.path, app.path])

        expected = (
            "Deployment configuration at {path} could not be parsed "
            "as YAML"
        ).format(path=deploy.path)
        self.assertTrue(str(e).startswith(expected))
A ``UsageError`` is raised if the supplied deployment
dataset/ETHPy150Open ClusterHQ/flocker/flocker/cli/test/test_deploy_script.py/DeployOptionsTests.test_deployment_config_must_be_yaml