Add list() method to ManagerWithFind

ManagerWithFind.find() method wants to use self.list() but Manager does not
provides it. Therefore, it's better to implement it as an interface here,
and raise a NotImplementedError.

Change-Id: Iba6ef2c1f789c2eb12b210d42261d63796db3407
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
utils.find_resource fixes + fix for volumes

Nova volumes do not have a name property but a displayName one, therefore we
modify find_resource() so it looks for this. Then, we modify the test suite
for utils.py so it uses the novaclient.base.ManagerWithFind class for its
FakeManager rather than implementing its own find() method. This way we are
sure that the utils.py functions work correctly with ManagerWithFind and its
way to search in objects list.

FakeResource class is now used, whereas it was not before.

Change-Id: I4c4838250e6987e05022e1607e8d099eb8fb7fff
Signed-off-by: Julien Danjou <julien@danjou.info>
python-novaclient missing pep8 in pip-requires

Fixes bug #909210

Change-Id: I5be35665aa057997c7911aa903c4a123b8329111
Remove unused imports and fix NameError on exc

Change-Id: Ie35ccd7abaada74acb298ace97ae88eb0e0cce1e
Abstract Client building into novaclient.client

This prevents clients of the pythonic api from having to know the
internal module structure.

Change-Id: Idd5c522ac3ff6c2d7915f96ed327323ec83d54fc
Add the python api for floating IP DNS.

For blueprint public-and-private-dns.

Change-Id: I73d64f9e0ea6a1c913f427d1fd07b76d19e9f6a3
Merge "python-novaclient missing pep8 in pip-requires"
Fix typo in endpoint_name help string

Change-Id: Ibee3175b26af3eec033cdf2f35e49f268eef3796
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
Add missing returns and remove superfluous ones

Some methods which should have returned  objects dit not return and some
methods which don't  return anything used return ... Fixed  all that and
added tests to detect two returns which were missing.

Fixes bug 892058

Change-Id: If59468cfe1c7b1ab74ed0bfc6f81590dfd5dd668
Merge "Fix typo in endpoint_name help string"
Add tox.ini file.

Adds support for using tox to do multi-version unittesting.

Change-Id: I4476c44dd99b22d6ef96696848363d994670bf7d
Merge changes I4c483825,Iba6ef2c1

* changes:
  utils.find_resource fixes + fix for volumes
  Add list() method to ManagerWithFind
Install a good version of pip in the venv.

Change-Id: Ie318fa032fb6e88f250b1e67dbd903648cf8ea5b
Clean FloatingIPDNS resource

create() and get() are not needed here :
 - it's not the role of the resource to call 'create'.
 - 'get' is here to refresh the resource. There's no mean to retrieve
 for sure the resource (get by IP address *or* by name only).

Change-Id: I97f4c26264b4abd0c1c8cdd91acc23ab6d6d008e
Fix Quota ant SecurityGroup resources refreshing.

The Quota and SecurityGroup resources were not refreshed correctly.

Change-Id: I5b0a9efc07bc7ef05673256df5785aca931f64d8
Merge "Abstract Client building into novaclient.client"
Added command-line interfaces for the floating ip DNS api to nova.

For blueprint public-and-private-dns.

Change-Id: Idf89d532559c32cbaf015d17203ee927f18e985b
show 409 responses

409s are getting eaten... and nova uses this to return error when not in
the correct state to do an operation.

Change-Id: I76e9e98a89deb19e6b8aa32426fa31d6d66b8fdd
Merge "Add tox.ini file."
PEP8 python-novaclient cleanup

Fixes bug #911552

The None, True, and False values are singletons.

All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.
All Object type comparisons should use isinstance()
instead of comparing types directly

Change-Id: Ia5571e58e2662c652f0e996d8c1a1acb4531623d