Wrong mock assert methods
Bug #1429669 reported by
Thang Pham
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Thang Pham |
Bug Description
Several cinder test cases are using the wrong mock assert methods, e.g. assert_called() or assert_
Changed in cinder: | |
assignee: | nobody → Thang Pham (thang-pham) |
Changed in cinder: | |
status: | New → In Progress |
Changed in cinder: | |
importance: | Undecided → Low |
Changed in cinder: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | kilo-3 → 2015.1.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/160208 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=a9b9d53a2fe 86d90587053ece8 b26b9ae2fdf3fb
Committed: https:/
Submitter: Jenkins
Branch: master
commit a9b9d53a2fe86d9 0587053ece8b26b 9ae2fdf3fb
Author: Thang Pham <email address hidden>
Date: Sun Mar 1 19:43:58 2015 -0500
Raise exception for invalid mock assert calls
Several test cases were using the wrong mock assert methods.
The following patch corrects these calls and adds a method in
test.py (sourced from nova/test.py) to make sure they are
properly caught in the future.
Closes-Bug: #1429669 b402e412b51e882 859cb49108c
Change-Id: Ic6e5bca0c3ddbf