rapi.testutils.FakeCurl: Add header support
authorMichael Hanselmann <hansmi@google.com>
Fri, 30 Mar 2012 14:41:04 +0000 (16:41 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 26 Apr 2012 19:33:59 +0000 (21:33 +0200)
commitd94924909859ab8cd00e48f93b599a6ad8e83868
tree68fad86b0a74cad9ad7406e13fb8126b6b14ca34
parentf90a1ab5b75087504689368236b7e1d78fea1475
rapi.testutils.FakeCurl: Add header support

With this patch headers are constructed from the PycURL options
and passed to the mock implementation.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/rapi/testutils.py
test/ganeti.rapi.client_unittest.py