whitespace cleanups
This commit is contained in:
parent
2d785404ed
commit
536be15a87
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import prettytable
|
import prettytable
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from novaclient import base
|
from novaclient import base
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import mock
|
import mock
|
||||||
import httplib2
|
import httplib2
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from tests.v1_0 import fakes
|
from tests.v1_0 import fakes
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import httplib2
|
import httplib2
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from novaclient.v1_0 import servers
|
from novaclient.v1_0 import servers
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from novaclient.v1_1 import servers
|
from novaclient.v1_1 import servers
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from novaclient.v1_1 import zones
|
from novaclient.v1_1 import zones
|
||||||
|
Loading…
Reference in New Issue
Block a user