예제 #1
0
파일: http_test.py 프로젝트: bryson/salt
 def test_query(self):
     """
     Test for Query a resource, and decode the return data
     """
     with patch.object(salt.utils.http, "query", return_value="A"):
         self.assertEqual(http.query("url"), "A")
예제 #2
0
 def test_query(self):
     '''
     Test for Query a resource, and decode the return data
     '''
     with patch.object(salt.utils.http, 'query', return_value='A'):
         self.assertEqual(http.query('url'), 'A')
예제 #3
0
 def test_query(self):
     """
     Test for Query a resource, and decode the return data
     """
     with patch.object(salt.utils.http, "query", return_value="A"):
         self.assertEqual(http.query("url"), "A")