summaryrefslogtreecommitdiff
path: root/ceilometerclient/tests/unit/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix the disorder of items of Traits in the output of event-listxialinjuan2016-03-231-4/+6
| | | | | | | | When use the command ceilometer event-list, the output is not alwarys ordered. This patch fix it. Closes-Bug: #1553932 Change-Id: I3af0fb25bd09ea9f15584219f07dd24ebb77c1cc
* change the dict output format to make consistency under py27 and py34xialinjuan2016-01-141-17/+48
| | | | | | | | | | | | | For the command output in ceilometer cli, if it is a dict and it has items which is list type, originally it won't handle the items in the list. As to under py27, the string type in the list is unicode, the string always look like u"http://alarm", while under py34 the string is "http://alarm", this cause output inconsistency. This patch will handle this inconsistency. Change-Id: I5e7cf4052f68e5a434bcf86242b11365b34750a0
* Fix the parameter order of assertEqual in ceilometerclientSteve Wilkerson2015-12-011-20/+20
| | | | | | | | | On assertEqual, the parameter order should be (expected, actual). Some of the tests in ceilometer client were written with invalid parameter orders. This patch fixes those tests. Change-Id: I9a7a81bdb0d9224f2b9cd53b7fb6eaf5ed7a582a Partial-Bug: 1277104
* Move unit tests into their own subdirectoryChris Dent2015-03-131-0/+265
This is in preparation of moving functional tests currently in tempest in-tree. No surprises in this change: * move files * update the local imports Same number of tests run, all still pass. Change-Id: Ibfeac44421c5f36740b1377868f5ec469b2893f5