Include a test case for the previous "Don't assume!" commit.

This commit is contained in:
Pedro Algarvio 2012-11-09 11:23:30 +00:00
parent 28510df4db
commit 75f70e49f3

View File

@ -150,6 +150,15 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
data = self.run_salt('-d user.add')
self.assertIn('user.add:', data)
def test_salt_documentation_arguments_not_assumed(self):
'''
Test to see if we're not auto-adding '*' and 'sys.doc' to the call
'''
data = self.run_salt('\'*\' -d user.add')
self.assertIn('user.add:', data)
data = self.run_salt('\'*\' sys.doc -d user.add')
self.assertIn('user.add:', data)
if __name__ == "__main__":
loader = TestLoader()