<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from salttesting import TestCase , skipIf <EOL> from salttesting . mock import ( <EOL> NO_MOCK , <EOL> NO_MOCK_REASON <EOL> ) <EOL> from salttesting . helpers import ensure_in_syspath <EOL> ensure_in_syspath ( '<STR_LIT>' ) <EOL> from salt . modules import win_disk <EOL> class MockKernel32 ( object ) : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self ) : <EOL> pass <EOL> @ staticmethod <EOL> def GetLogicalDrives ( ) : <EOL> '''<STR_LIT>''' <EOL> return <NUM_LIT:1> <EOL> class MockWindll ( object ) : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self ) : <EOL> self . kernel32 = MockKernel32 ( ) <EOL> class MockCtypes ( object ) : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self ) : <EOL> self . windll = MockWindll ( ) <EOL> win_disk . ctypes = MockCtypes ( ) <EOL> @ skipIf ( NO_MOCK , NO_MOCK_REASON ) <EOL> class WinDiskTestCase ( TestCase ) : <EOL> '''<STR_LIT>''' <EOL> def test_usage ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( win_disk . usage ( ) , <EOL> { '<STR_LIT>' : { '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : '<STR_LIT>' } } ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( WinDiskTestCase , needs_daemon = False ) </s>
