<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> import os <EOL> from salttesting import skipIf <EOL> from salttesting . helpers import destructiveTest , ensure_in_syspath <EOL> ensure_in_syspath ( '<STR_LIT>' ) <EOL> import integration <EOL> NO_ALTERNATIVES = False <EOL> if not os . path . exists ( '<STR_LIT>' ) : <EOL> NO_ALTERNATIVES = True <EOL> @ skipIf ( NO_ALTERNATIVES , '<STR_LIT>' ) <EOL> class AlterantivesStateTest ( integration . ModuleCase , <EOL> integration . SaltReturnAssertsMixIn ) : <EOL> @ destructiveTest <EOL> def test_install_set_and_remove ( self ) : <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , path = '<STR_LIT>' ) <EOL> self . assertSaltFalseReturn ( ret ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , <EOL> link = '<STR_LIT>' , path = '<STR_LIT>' , priority = <NUM_LIT:50> ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> self . assertSaltStateChangesEqual ( ret , '<STR_LIT>' , keys = [ '<STR_LIT:path>' ] ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , <EOL> link = '<STR_LIT>' , path = '<STR_LIT>' , priority = <NUM_LIT:50> ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> self . assertSaltStateChangesEqual ( ret , { } ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , <EOL> link = '<STR_LIT>' , path = '<STR_LIT>' , priority = <NUM_LIT> ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> self . assertSaltStateChangesEqual ( ret , '<STR_LIT>' , keys = [ '<STR_LIT:path>' ] ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , path = '<STR_LIT>' ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> self . assertSaltStateChangesEqual ( ret , { } ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , path = '<STR_LIT>' ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> self . assertSaltStateChangesEqual ( ret , '<STR_LIT>' , keys = [ '<STR_LIT:path>' ] ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , path = '<STR_LIT>' ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> self . assertSaltStateChangesEqual ( ret , { } ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , path = '<STR_LIT>' ) <EOL> self . assertSaltTrueReturn ( ret ) <EOL> ret = self . run_state ( '<STR_LIT>' , name = '<STR_LIT>' , path = '<STR_LIT>' ) <EOL> self . assertSaltTrueReturn ( ret ) </s>
