#NEWLINE# def test_cannot_mix_ca_path_options( self ) : #NEWLINE# #INDENT# '\n        A ``UsageError`` is raised if the ``certificates-directory`` and any\n        of ``cacert``, ``cert`` or ``key`` options are mixed together.\n        ' #NEWLINE# app = self . mktemp ( ) #NEWLINE# FilePath ( app ) . touch ( ) #NEWLINE# deploy = self . mktemp ( ) #NEWLINE# FilePath ( deploy ) . touch ( ) #NEWLINE# cacert_path = b'/path/to/cluster.crt' #NEWLINE# certificates_directory = b'/path/to/certificates' #NEWLINE# self . options [ 'cacert' ] = cacert_path #NEWLINE# self . options [ 'certificates-directory' ] = certificates_directory #NEWLINE# exception = self . assertRaises ( UsageError , self . options . parseOptions , [ CONTROL_HOST , deploy , app ] ) #NEWLINE# 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 ) )