Replace decprecated method aliases in tests

Some of the TestCase methods have been deprecated since python 2.7.
We need use correct names.

http://docs.python.org/2/library/unittest.html#deprecated-aliases

* replace 'failIf' with 'assertFalse'
* replace 'failUnlessAlmostEqual' with 'assertAlmostEqual'

Change-Id: I68746f8810c17cd5456328005fc65003e57491c8
Merge "Replace decprecated method aliases in tests"