'First applying monkey patches of functions and methods which have
IPv4 hardcoded.'

def setUp(self):

    test_utils.get_unused_port_ipv4 = test_utils.get_unused_port
    test_utils.get_unused_port_and_socket_ipv4 = test_utils.get_unused_port_and_socket
    test_utils.get_unused_port = test_utils.get_unused_port_ipv6
    test_utils.get_unused_port_and_socket = test_utils.get_unused_port_and_socket_ipv6
    super(TestImagesIPv6, self).setUp()
    self.cleanup()
    self.ping_server_ipv4 = self.ping_server
    self.ping_server = self.ping_server_ipv6
    self.include_scrubber = False
