Merge "Move binary and notification tests in unit"

This commit is contained in:
Zuul 2017-10-26 04:11:17 +00:00 committed by Gerrit Code Review
commit 22138b5988
2 changed files with 2 additions and 3 deletions

View File

@ -167,6 +167,5 @@ class BinCeilometerPollingServiceTestCase(base.BaseTestCase):
["ceilometer-polling", "--config-file=%s" % self.tempfile],
stderr=subprocess.PIPE)
__, err = self.subp.communicate()
expected = ("Exception: Valid values are ['compute', 'central', "
"'ipmi'], but found [\"['central']\"]")
self.assertIn(expected, err)
self.assertIn(b"Exception: Valid values are ['compute', 'central', "
b"'ipmi'], but found [\"['central']\"]", err)