#NEWLINE# def invalid_settings_test3( self ) : #NEWLINE# #INDENT# content = '\nfrom conans import ConanFile\n\nclass SayConan(ConanFile):\n    name = "Say"\n    version = "0.1"\n    settings = {"os": None, "compiler": ["Visual Studio"]}\n' #NEWLINE# self . client . save ( { #NEWLINE# #INDENT# CONANFILE : content , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . client . run ( 'install -s compiler=gcc -s compiler.version=4.8 --build missing' , ignore_error = True ) #NEWLINE# self . assertIn ( bad_value_msg ( 'settings.compiler' , 'gcc' , [ 'Visual Studio' ] ) , str ( self . client . user_io . out ) ) #NEWLINE# content = '\nfrom conans import ConanFile\n\nclass SayConan(ConanFile):\n    name = "Say"\n    version = "0.1"\n    settings = invalid\n' #NEWLINE# self . client . save ( { #NEWLINE# #INDENT# CONANFILE : content , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . client . run ( 'install --build missing' , ignore_error = True ) #NEWLINE# self . assertIn ( "invalid' is not defined" , str ( self . client . user_io . out ) )