diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2014-06-13 16:56:32 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2014-06-13 17:06:28 -0500 |
| commit | 0059f045a9958b1748fcec51799d8cffc0831440 (patch) | |
| tree | 123306de94b5b6dfae7787835705cf42e2d543b0 /openstackclient | |
| parent | 497a38903c4a282975b2f197bc4af22c15d8ab21 (diff) | |
| download | python-openstackclient-0059f045a9958b1748fcec51799d8cffc0831440.tar.gz | |
Ignore most of the new hacking 0.9.2 rules
So we can update requriements.txt. But fix a couple of easy ones:
* Fix E251 (1 occurrance)
* Fix E131 (1 occurrance)
Change-Id: I62aaa423aa6da9e9f0ca026ec586b51cc6a6df03
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/compute/v2/usage.py | 2 | ||||
| -rw-r--r-- | openstackclient/tests/common/test_utils.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/openstackclient/compute/v2/usage.py b/openstackclient/compute/v2/usage.py index f7e11bca..ed98af26 100644 --- a/openstackclient/compute/v2/usage.py +++ b/openstackclient/compute/v2/usage.py @@ -36,7 +36,7 @@ class ListUsage(lister.Lister): metavar="<start>", default=None, help="Usage range start date, ex 2012-01-20" - " (default: 4 weeks ago)." + " (default: 4 weeks ago)." ) parser.add_argument( "--end", diff --git a/openstackclient/tests/common/test_utils.py b/openstackclient/tests/common/test_utils.py index 3650746b..fbc1a926 100644 --- a/openstackclient/tests/common/test_utils.py +++ b/openstackclient/tests/common/test_utils.py @@ -107,8 +107,9 @@ class TestFindResource(test_utils.TestCase): def test_find_resource_find_not_found(self): self.manager.get = mock.Mock(side_effect=Exception('Boom!')) - self.manager.find = mock.Mock(side_effect= - exceptions.NotFound(404, "2")) + self.manager.find = mock.Mock( + side_effect=exceptions.NotFound(404, "2") + ) result = self.assertRaises(exceptions.CommandError, utils.find_resource, self.manager, |
