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")
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')