示例#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")