Use decorators for mock patching 77/37177/3
authorMartin Kulhavy <martin.kulhavy@nokia.com>
Tue, 11 Jul 2017 12:06:04 +0000 (15:06 +0300)
committerMartin Kulhavy <martin.kulhavy@nokia.com>
Tue, 11 Jul 2017 14:52:40 +0000 (17:52 +0300)
commitd0e5072abeea28d443626daada46038f16af3bd0
tree26599c6f108c5c7a1b03e4419bdc89cac5677864
parent9138cc184b23cef2067605d6464e0acbd6bd105d
Use decorators for mock patching

Instead of using the `with` clause, mock patching is prepended to each
testing method as a decorator.

Change-Id: Ieb962d6fd0b9a6cdc649c44e39f69b543426dce9
Signed-off-by: Martin Kulhavy <martin.kulhavy@nokia.com>
functest/tests/unit/openstack/rally/test_rally.py