Move binary and notification tests in unit

Those tests are nothing to do with the functional testing done with storage
drivers. They can be done at unit test time.

Change-Id: Id176175fbbe814bb03ae9e9ca6ac6a7e1149c290
This commit is contained in:
Julien Danjou 2017-10-25 14:47:13 +02:00
parent d881dd5228
commit 6aac2613c4
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)