Tests: Changed hook test to use a command that actually produces output

This commit is contained in:
Paul Beckingham 2015-04-05 16:14:20 -04:00
parent 0cba34268c
commit d405a5f3b5

View file

@ -47,7 +47,7 @@ class TestHooksOnLaunch(TestCase):
hookname = 'on-launch-good-env'
self.t.hooks.add_default(hookname, log=True)
code, out, err = self.t(("_get", "system.os")) # Arbitrary command
code, out, err = self.t(("version", )) # Arbitrary command that generates output.
hook = self.t.hooks[hookname]
hook.assertTriggeredCount(1)