whitespace cleanups

This commit is contained in:
termie 2011-08-08 13:20:44 -07:00
parent 2d785404ed
commit 536be15a87
23 changed files with 31 additions and 50 deletions

View File

@ -1,4 +1,3 @@
import prettytable import prettytable

View File

@ -1,4 +1,3 @@
from novaclient import base from novaclient import base
from novaclient.v1_0 import base as local_base from novaclient.v1_0 import base as local_base

View File

@ -2,8 +2,8 @@
A fake server that "responds" to API methods with pre-canned responses. A fake server that "responds" to API methods with pre-canned responses.
All of these responses come from the spec, so if for some reason the spec's All of these responses come from the spec, so if for some reason the spec's
wrong the tests might raise AssertionError. I've indicated in comments the wrong the tests might raise AssertionError. I've indicated in comments the places where actual
places where actual behavior differs from the spec. behavior differs from the spec.
""" """
import novaclient.client import novaclient.client
@ -17,8 +17,7 @@ def assert_has_keys(dict, required=[], optional=[]):
except AssertionError: except AssertionError:
allowed_keys = set(required) | set(optional) allowed_keys = set(required) | set(optional)
extra_keys = set(keys).difference(set(required + optional)) extra_keys = set(keys).difference(set(required + optional))
raise AssertionError("found unexpected keys: %s" % raise AssertionError("found unexpected keys: %s" % list(extra_keys))
list(extra_keys))
class FakeClient(object): class FakeClient(object):

View File

@ -1,4 +1,3 @@
import mock import mock
from novaclient import base from novaclient import base

View File

@ -1,4 +1,3 @@
import httplib2 import httplib2
import mock import mock

View File

@ -1,4 +1,3 @@
import os import os
import mock import mock
import httplib2 import httplib2

View File

@ -1,4 +1,3 @@
import StringIO import StringIO
from tests.v1_0 import fakes from tests.v1_0 import fakes

View File

@ -1,4 +1,3 @@
import httplib2 import httplib2
import mock import mock

View File

@ -1,4 +1,3 @@
from novaclient.v1_0 import backup_schedules from novaclient.v1_0 import backup_schedules
from tests.v1_0 import fakes from tests.v1_0 import fakes
from tests import utils from tests import utils

View File

@ -1,4 +1,3 @@
from novaclient import exceptions from novaclient import exceptions
from novaclient.v1_0 import flavors from novaclient.v1_0 import flavors
from tests.v1_0 import fakes from tests.v1_0 import fakes

View File

@ -1,4 +1,3 @@
from novaclient.v1_0 import images from novaclient.v1_0 import images
from tests.v1_0 import fakes from tests.v1_0 import fakes
from tests import utils from tests import utils

View File

@ -1,4 +1,3 @@
from novaclient.v1_0 import ipgroups from novaclient.v1_0 import ipgroups
from tests.v1_0 import fakes from tests.v1_0 import fakes
from tests import utils from tests import utils

View File

@ -1,4 +1,3 @@
import StringIO import StringIO
from novaclient.v1_0 import servers from novaclient.v1_0 import servers

View File

@ -1,4 +1,3 @@
import os import os
import mock import mock

View File

@ -1,4 +1,3 @@
from novaclient import exceptions from novaclient import exceptions
from novaclient.v1_1 import flavors from novaclient.v1_1 import flavors
from tests.v1_1 import fakes from tests.v1_1 import fakes

View File

@ -1,4 +1,3 @@
from novaclient.v1_1 import images from novaclient.v1_1 import images
from tests.v1_1 import fakes from tests.v1_1 import fakes
from tests import utils from tests import utils

View File

@ -1,4 +1,3 @@
import StringIO import StringIO
from novaclient.v1_1 import servers from novaclient.v1_1 import servers

View File

@ -1,4 +1,3 @@
import os import os
import mock import mock

View File

@ -1,4 +1,3 @@
import StringIO import StringIO
from novaclient.v1_1 import zones from novaclient.v1_1 import zones