<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from salttesting import TestCase , skipIf <EOL> from salttesting . mock import MagicMock , patch , NO_MOCK , NO_MOCK_REASON <EOL> from salt . modules import extfs <EOL> @ skipIf ( NO_MOCK , NO_MOCK_REASON ) <EOL> class ExtfsTestCase ( TestCase ) : <EOL> '''<STR_LIT>''' <EOL> extfs . __salt__ = { } <EOL> def test_mkfs ( self ) : <EOL> '''<STR_LIT>''' <EOL> mock = MagicMock ( ) <EOL> with patch . dict ( extfs . __salt__ , { '<STR_LIT>' : mock } ) : <EOL> self . assertListEqual ( [ ] , extfs . mkfs ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> @ patch ( '<STR_LIT>' , MagicMock ( return_value = '<STR_LIT>' ) ) <EOL> def test_tune ( self ) : <EOL> '''<STR_LIT>''' <EOL> mock = MagicMock ( ) <EOL> with patch . dict ( extfs . __salt__ , { '<STR_LIT>' : mock } ) : <EOL> self . assertEqual ( '<STR_LIT>' , extfs . tune ( '<STR_LIT>' ) ) <EOL> def test_dump ( self ) : <EOL> '''<STR_LIT>''' <EOL> mock = MagicMock ( ) <EOL> with patch . dict ( extfs . __salt__ , { '<STR_LIT>' : mock } ) : <EOL> self . assertEqual ( { '<STR_LIT>' : { } , '<STR_LIT>' : { } } , <EOL> extfs . dump ( '<STR_LIT>' ) ) <EOL> @ patch ( '<STR_LIT>' , <EOL> MagicMock ( return_value = { '<STR_LIT>' : { } , '<STR_LIT>' : { } } ) ) <EOL> def test_attributes ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertEqual ( { } , extfs . attributes ( '<STR_LIT>' ) ) <EOL> @ patch ( '<STR_LIT>' , <EOL> MagicMock ( return_value = { '<STR_LIT>' : { } , '<STR_LIT>' : { } } ) ) <EOL> def test_blocks ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertEqual ( { } , extfs . blocks ( '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( ExtfsTestCase , needs_daemon = False ) </s>
