yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #18949
[Bug 1355251] [NEW] db plugin sort testing function should not use sorted() on assertion
Public bug reported:
tests/unit/test_db_plugin.py line 585
(https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_db_plugin.py#L585)
sorted() function is used within assertEqual() function.
This breaks tests objective which is to test sorting
Every unit test using this function (_test_list_with_sort) for sorting tests will always succeed.
sorted() should not be used for proper test results
** Affects: neutron
Importance: Undecided
Assignee: Evgeny Fedoruk (evgenyf)
Status: New
** Tags: unittest
** Changed in: neutron
Assignee: (unassigned) => Evgeny Fedoruk (evgenyf)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1355251
Title:
db plugin sort testing function should not use sorted() on assertion
Status in OpenStack Neutron (virtual network service):
New
Bug description:
tests/unit/test_db_plugin.py line 585
(https://github.com/openstack/neutron/blob/master/neutron/tests/unit/test_db_plugin.py#L585)
sorted() function is used within assertEqual() function.
This breaks tests objective which is to test sorting
Every unit test using this function (_test_list_with_sort) for sorting tests will always succeed.
sorted() should not be used for proper test results
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1355251/+subscriptions
Follow ups
References