def METHOD_NAME(self):
    actual = ping._get_ping_command_args_list(
        ping.PingCommandParams(
            host_or_ip='google.com',
            num_packets=4,
            timeout_secs=5,
        ),
    )
    self.assertEqual(
        ['ping', 'google.com', '-c', '4', '-w', '5'],
        actual,
    )
    actual = ping._get_ping_command_args_list(
        ping.PingCommandParams(
            host_or_ip='google.com',
            num_packets=None,
            timeout_secs=None,
        ),
    )
    self.assertEqual(
        ['ping', 'google.com', '-c', '4', '-w', '20'],
        actual,
    )