<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from salttesting import TestCase , skipIf <EOL> from salttesting . mock import ( <EOL> patch , <EOL> NO_MOCK , <EOL> NO_MOCK_REASON <EOL> ) <EOL> from salt . modules import http <EOL> import salt . utils . http <EOL> http . __opts__ = { } <EOL> @ skipIf ( NO_MOCK , NO_MOCK_REASON ) <EOL> class HttpTestCase ( TestCase ) : <EOL> '''<STR_LIT>''' <EOL> def test_query ( self ) : <EOL> '''<STR_LIT>''' <EOL> with patch . object ( salt . utils . http , '<STR_LIT>' , return_value = '<STR_LIT:A>' ) : <EOL> self . assertEqual ( http . query ( '<STR_LIT:url>' ) , '<STR_LIT:A>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( HttpTestCase , needs_daemon = False ) </s>
