[openstack-dev] help with python-cinderclient unit test

Luis de Bethencourt luis at debethencourt.com
Tue Feb 18 21:31:06 UTC 2014


Hi,

I am finishing a patch that Seif Lofty started. It shows more information
for the quota-usage health.

https://review.openstack.org/gitweb?p=openstack%2Fpython-cinderclient.git;a=commitdiff;h=785cae3a17fbeccb366b01ece8f8704edf4d2ae7

I am not sure how the unit test for this should work.
I've tried to add...

    def test_quota_usage_show(self):
        self.run_command('quota-usage demo')

at the end of cinder/tests/v1/test_shell.py, and when running tox I get:

AssertionError: Called unknown API method: GET
/os-quota-sets/demo?usage=True, expected fakes method name:
get_os_quota_sets_demo

Any ideas or suggestions?

Thanks,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140218/3743363f/attachment.html>


More information about the OpenStack-dev mailing list