#NEWLINE# def test_application_config_must_be_yaml( self ) : #NEWLINE# #INDENT# '\n        A ``UsageError`` is raised if the supplied application\n        configuration cannot be parsed as YAML.\n        ' #NEWLINE# deploy = FilePath ( self . mktemp ( ) ) #NEWLINE# app = FilePath ( self . mktemp ( ) ) #NEWLINE# deploy . setContent ( b'{}' ) #NEWLINE# app . setContent ( b"{'foo':'bar', 'x':y, '':'" ) #NEWLINE# e = self . assertRaises ( UsageError , self . options . parseOptions , [ CONTROL_HOST , deploy . path , app . path ] ) #NEWLINE# expected = 'Application configuration at {path} could not be parsed as YAML' . format ( path = app . path ) #NEWLINE# self . assertTrue ( str ( e ) . startswith ( expected ) )