Replace assertEquals with assertEqual - tests/scheduler

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

This is part of blueprint assertequal

Change-Id: I5a6c6ac5d248ea1666f93196d21eb23e793b36d1
fix a typo error in test_libvirt_vif.py

Change-Id: I4d5edbd37557185f0235d55bc574ef8314daf643
Flavor name should not contain only white spaces

Returns 400 Bad request instead of 200 Ok if flavor name
contains only whitespaces.
Flavor name containing any leading and trailing whitespaces will be
trimmed before validation and before saving it to the backend.

Added unit test cases for both v2 and v3 api's. For v3 api instead of
stubbing flavors 'create' method stubbed db's 'flavor_create' method.
Also removed redundant code of stubbing 'flavor_create' method.

For example
name = "  "              #not allowed
name = "extra large"     #allowed
name = " extra large "   #allowed, but leading and trailing whitespaces
                         #will be trimmed (same as instance name)

Closes-Bug: #1237611

Change-Id: Ie68be299030a878a752dbfdcdfe5094f8427598a
Remove live_snapshot plumbing

This was never actually used.  We discussed the feature this was for on
the mailing list extensively, and then again at the design summit.
Consensus is that this is not something we want to support.

Change-Id: I1dc0a1daa0667b3541f9e397abb2c9b1ea85f55e
xenapi: check for IP address in live migration pre check

A requirement for live migration is that the destination
host contains a management PIF with an IP address assigned.
If a host is broken (no IP), the compute log simply shows a generic
exception on the xenapi call host.migrate_receive.  We can
provide better information that the IP address is missing
by checking this prior to the call.

Closes-Bug: 1245592

Change-Id: Iaa6345f4bddf2f98efb4a5c9743da16ba8ae7b56
Merge "fix a typo error in test_libvirt_vif.py"
Merge "Remove live_snapshot plumbing"
Merge "xenapi: check for IP address in live migration pre check"
Merge "Replace assertEquals with assertEqual - tests/scheduler"
Merge "Flavor name should not contain only white spaces"