'Disable osprofiler.
osprofiler should not run for unit tests.'

def _disable_osprofiler(self):

    side_effect = (lambda value: value)
    mock_decorator = mock.MagicMock(side_effect=side_effect)
    p = mock.patch('osprofiler.profiler.trace_cls', return_value=mock_decorator)
    p.start()
