Claudiu Popa fbce2bad36 Add testutils.ConfPatcher and use it in tests
The tests were modifying a global ConfigOpts object, without
resetting the old value, which could affect other tests as well.
The new ConfPatcher class can be used both as a context manager
and as a decorator, making sure that the old value of configuration
option is set back after exiting from the decorated function or from
the context manager.

Change-Id: If23bf225207977e0e313dc806d53bca8a40215d6
2015-02-12 19:43:16 +02:00
..
2015-01-18 17:51:56 +02:00
2015-01-18 17:51:56 +02:00
2015-01-18 17:51:56 +02:00
2015-01-18 17:51:56 +02:00