The earlier patch fixed a logic error with the way mocks were handled in
TestIsIPv6Enabled. This patch replaces fixtures with method decorators
to do the mocking, bringing the mock definition closer to the function
that is using it.
Change-Id: I9f5649c73da2e5db7edee53dc6a4cbb26e4f675b