def test_cannot_mix_ca_path_options(self):
        app = self.mktemp()
        FilePath(app).touch()
        deploy = self.mktemp()
        FilePath(deploy).touch()
        cacert_path = b"/path/to/cluster.crt"
        certificates_directory = b"/path/to/certificates"
        self.options["cacert"] = cacert_path
        self.options["certificates-directory"] = certificates_directory
        exception = self.assertRaises(UsageError, self.options.parseOptions,
                                      [CONTROL_HOST, deploy, app])
        self.assertEqual(
            ("Cannot use --certificates-directory and --cacert options "
             "together. Please specify either certificates directory or "
             "full paths to each file via the --cacert, --cert and --key "
             "options."),
            str(exception)
        )
Create a payment event for the whole order
dataset/ETHPy150Open ClusterHQ/flocker/flocker/cli/test/test_deploy_script.py/DeployOptionsTests.test_cannot_mix_ca_path_options--crossover with--dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/dashboard/orders/views.py/OrderDetailView.create_order_payment_event