This test can currently fail with mismatched parameters
to urlopen. Just ensure that urlopen is called so
that this works across all environments/versions.
Closes-Bug: #
1486245
Change-Id: Icec5d208a979ba62b9dfef2b499a00bacec841d3
_urlopen.return_value = mock.Mock()
self.client.request(path, mock.ANY)
_Request.assert_called_with(self.url + path, None, self.client.headers)
- _urlopen.assert_called_with(mock.ANY, timeout=self.timeout)
+ self.assertEqual(1, _urlopen.call_count)
_RestResult.assert_called_with(response=mock.ANY)
@mock.patch.object(client, 'RestResult')