<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from salttesting import TestCase , skipIf <EOL> from salttesting . mock import ( <EOL> MagicMock , <EOL> patch <EOL> ) <EOL> from salttesting . helpers import ensure_in_syspath <EOL> ensure_in_syspath ( '<STR_LIT>' ) <EOL> from salt . modules import win_shadow <EOL> import salt . utils <EOL> win_shadow . __salt__ = { } <EOL> @ skipIf ( not salt . utils . is_windows ( ) , '<STR_LIT>' ) <EOL> class WinShadowTestCase ( TestCase ) : <EOL> '''<STR_LIT>''' <EOL> def test_info ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( win_shadow . info ( '<STR_LIT>' ) , { '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' } ) <EOL> def test_set_password ( self ) : <EOL> '''<STR_LIT>''' <EOL> mock_cmd = MagicMock ( return_value = { '<STR_LIT>' : False } ) <EOL> with patch . dict ( win_shadow . __salt__ , { '<STR_LIT>' : mock_cmd } ) : <EOL> self . assertTrue ( win_shadow . set_password ( '<STR_LIT:root>' , '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( WinShadowTestCase , needs_daemon = False ) </s>
