diff options
author | Jarret Raim <jarret.raim@rackspace.com> | 2014-07-07 16:30:10 -0500 |
---|---|---|
committer | Jarret Raim <jarret.raim@rackspace.com> | 2014-07-07 16:33:18 -0500 |
commit | fd01494d56bd84d1562d24459aa443e27153e227 (patch) | |
tree | 122786ad97e0976a4ddb14edc537d644dd139608 | |
parent | f92b3b7a4d86ccffd764e723ee8e8178490ce63a (diff) | |
download | python-barbicanclient-fd01494d56bd84d1562d24459aa443e27153e227.tar.gz |
Fix Testing Failure due to Argparse2.2.0
Argparse changes the error message displayed depending on the version of
the python interpreter being used. This PR tests the bare minimum error
message for an argparse failure.
Change-Id: I1c19752002c763d232bc4d45a8ac284bc339e7dd
-rw-r--r-- | barbicanclient/test/test_barbican.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/barbicanclient/test/test_barbican.py b/barbicanclient/test/test_barbican.py index 995ce1a..46f0c21 100644 --- a/barbicanclient/test/test_barbican.py +++ b/barbicanclient/test/test_barbican.py @@ -62,7 +62,7 @@ class WhenTestingBarbicanCLI(test_client.BaseEntityResource): args = "" exit_code, out = self.barbican(args) self.assertEqual(2, exit_code) - self.assertIn('error: the following', out) + self.assertIn('usage:', out) def test_should_show_usage_with_help_flag(self): args = "-h" |