diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-10-09 16:00:39 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-10-09 16:00:39 +0000 |
commit | 9fbbb2b8871e654048dbbe46347d49d8230e8a26 (patch) | |
tree | ada91614ab9f2f7ada7f10073ae52a6541a4ca6f | |
parent | 403c2ba4668f04739adc608f3538c5c91c5be28b (diff) | |
parent | 0ff4fe1a7619c289bc10e4905f1627d12a229e4a (diff) | |
download | pbr-9fbbb2b8871e654048dbbe46347d49d8230e8a26.tar.gz |
Merge "Add a test for command registration."
-rw-r--r-- | pbr/tests/test_hooks.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pbr/tests/test_hooks.py b/pbr/tests/test_hooks.py index 88106a6..491f8dd 100644 --- a/pbr/tests/test_hooks.py +++ b/pbr/tests/test_hooks.py @@ -41,6 +41,8 @@ import os import textwrap +from testtools.matchers import Contains + from pbr import tests from pbr.tests import util @@ -89,3 +91,8 @@ class TestHooks(tests.BaseTestCase): """) in stdout # flake8: noqa assert stdout.endswith('build_ext post-hook') assert return_code == 0 + + def test_custom_commands_known(self): + stdout, _, return_code = self.run_setup('--help-commands') + self.assertFalse(return_code) + self.assertThat(stdout, Contains(" testr ")) |