Named arguments should be used for assertValidUserResponse() in unittest case

Bug #1591916 reported by Andrew Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Wishlist
Unassigned

Bug Description

In the keystone unittest of test_v3_identity.py, there are two functions used in the IdentityTestCase,
one is assertValidUserListResponse() and another is assertValidUserResponse().

These two functions eventually used this RestfulTestCase.assertValidUser(), and for the above two functions are call in different style.

self.assertValidUserListResponse(r, ref=self.user, resource_url=resource_url)
self.assertValidUserResponse(r, user)

the assertValidUserListResponse() is called with named argument "ref=self.user", but the assertValidUserResponse() is not.

Although, this won't cause any problem, but it would be better to unify the function call.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/328907

Changed in keystone:
assignee: nobody → Andrew Liu (andrew-lhj)
status: New → In Progress
Revision history for this message
David Stanek (dstanek) wrote :

I'm marking this as opinion because I think it's better the way that it currently is, but I'd be open to changing my mind with a good argument. To me there is minimal benefit to making a change like this and it's definitely not a bug.

Changed in keystone:
status: In Progress → Opinion
Revision history for this message
Steve Martinelli (stevemar) wrote :

I agree with your assessment, I will mark this as wishlist as it only impacts our tests

tags: added: test-improvement
Changed in keystone:
importance: Undecided → Wishlist
Changed in keystone:
status: Opinion → In Progress
Revision history for this message
Lance Bragstad (lbragstad) wrote :

Automatically unassigning due to inactivity.

Changed in keystone:
assignee: Andrew Liu (andrew-lhj) → nobody
Revision history for this message
Steve Martinelli (stevemar) wrote :

No movement in months, there is no direct user impact here so I'm marking as invalid.

Changed in keystone:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/328907
Reason: no movement in months, and bug is marked as invalid, let's move on.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.