Better examples on tests

This commit is contained in:
Pedro Algarvio 2014-04-24 16:04:51 +01:00
parent b969cd15f7
commit 13106807b1
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
'''
Test to see if passing additional arguments shows an error
'''
data = self.run_call('-d salt ldap.search "filter=ou=People"', catch_stderr=True)
data = self.run_call('-d virtualenv.create /tmp/ve', catch_stderr=True)
self.assertIn('You can only get documentation for one method at one time', '\n'.join(data[1]))
def test_issue_6973_state_highstate_exit_code(self):

View file

@ -50,7 +50,7 @@ class RunTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
'''
Test to see if passing additional arguments shows an error
'''
data = self.run_run('-d salt ldap.search "filter=ou=People"', catch_stderr=True)
data = self.run_run('-d virt.list foo', catch_stderr=True)
self.assertIn('You can only get documentation for one method at one time', '\n'.join(data[1]))
def test_issue_7754(self):