Exemple #1
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")
Exemple #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')
Exemple #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")