summaryrefslogtreecommitdiffstats
path: root/tests/unit/scheduler/test_base_filter.py
Commit message (Collapse)AuthorAgeFilesLines
* Enable hacking H404 test.Dina Belova2013-06-111-23/+16
| | | | | | H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
* Use mox object from moxstubout fixtureMark McLoughlin2013-05-201-3/+0
| | | | | | | | | | The moxstubout fixture creates a mox object which we can re-use in tests. It also ensures verify() is called, which it clearly wasn't in the case of the qpid tests. Change-Id: Ibf3326f18b160865012d40a5841b65438262c4df
* Break out common functionality for filters and weightsMatthew Sherborne2013-05-151-1/+3
| | | | | | | | | | | | In the context of openstack.common.scheduler: base_filter.BaseFilterManager and base_weight.BaseWeightManager had duplicated code. This patch breaks that code out into a shared base class: base_handler.BaseHandler Change-Id: Ie5232c6dd9876a75170beda71adde90fc6bb4153
* Renames filter to base_filter and weight to base_weightMatthew Sherborne2013-05-101-0/+129
filter is a python builtin function so importing it pollutes ones name space. It is now renamed to base_filter. We also rename weight to base_weight, just to be consistent in the naming conventions. We add a test for base_filter. Fixes bug 1175829 Change-Id: I46e0fa696d2f39081b5568c701b0a70c54f271ab