Hey,

Here is an example of how to assert on the query parameter values -
https://github.com/apache/libcloud/blob/trunk/libcloud/test/compute/test_ec2.py#L1186

Basically, you need to do it in the mock http method and you need to
use assertUrlContainsQueryParams assertion method.


On Mon, Jun 9, 2014 at 6:35 PM, Zak Estrada <[email protected]> wrote:

> Hi all,
>
> I've written a small patch (see
> https://issues.apache.org/jira/browse/LIBCLOUD-575), but I haven't been
> able to figure out the tests. I'm not quite sure how to test GET parameters
> in the current test setup. I could create a new type (e.g. similar to
> _servers_detail_ERROR_STATE.json), but that doesn't seem quite right to
> me...
>
> Any ideas?
>
> Thanks!
> --Zak
>

Reply via email to