Ejemplo n.º 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")
Ejemplo n.º 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')
Ejemplo n.º 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")