Searched refs:assertRaisesErrno (Results 1 – 12 of 12) sorted by relevance
77 self.assertRaisesErrno(errno.EPERM, socket, AF_PACKET, SOCK_RAW, 0)81 self.assertRaisesErrno(errno.ENOENT, open, "/proc/net/xt_qtaguid")85 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_rmem_def")86 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_rmem_max")87 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_rmem_min")88 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_wmem_def")89 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_wmem_max")90 self.assertRaisesErrno(errno.ENOENT, open, "/sys/kernel/ipv4/tcp_wmem_min")
337 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV4_PING)341 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV6_PING)428 self.assertRaisesErrno(errno.EAFNOSUPPORT, function, *args)469 self.assertRaisesErrno(errno.EINVAL, s.bind, ("127.0.0.1", 22))488 self.assertRaisesErrno(errno.EAGAIN, s4.recv, 32768)493 self.assertRaisesErrno(errno.EADDRINUSE, s6.bind, ("0.0.0.0", 167))498 self.assertRaisesErrno(errno.EINVAL, s.bind, ("0.0.0.0", 5429))512 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::1", 22))531 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::", 5429))535 self.assertRaisesErrno(errno.EADDRNOTAVAIL,[all …]
246 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)253 self.assertRaisesErrno(errno.ENOENT, GetNextKey, self.map_fd, key)270 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, 101)289 self.assertRaisesErrno(errno.EPERM, UpdateMap, self.map_fd, key, value)290 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, key)298 self.assertRaisesErrno(errno.EPERM, LookupMap, self.map_fd, key)312 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 4, self.prog_fd)313 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 6, self.prog_fd)457 self.assertRaisesErrno(errno.ENOENT, LookupMap, self.map_fd, uid)522 self.assertRaisesErrno(errno.EAGAIN, SocketUDPLoopBack, 1, 4, None)[all …]
48 self.assertRaisesErrno(ENOTCONN, sock.getpeername)57 with self.assertRaisesErrno(ESRCH):63 with self.assertRaisesErrno(ENOENT):75 with self.assertRaisesErrno(EINPROGRESS):
120 self.assertRaisesErrno(ENOTCONN, sock.getpeername)146 self.assertRaisesErrno(ENOTCONN, s.getpeername)370 self.assertRaisesErrno(383 self.assertRaisesErrno(EINVAL, DiagDump, op + 17)423 with self.assertRaisesErrno(ENOENT):498 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)562 self.assertRaisesErrno(ENOENT, open, self.TCP_DEFAULT_INIT_RWND, "w")584 self.assertRaisesErrno(EINPROGRESS, s.connect, (dstsockaddr, 53))609 self.assertRaisesErrno(EINVAL, sock.accept)722 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)[all …]
134 self.assertRaisesErrno(164 self.assertRaisesErrno(183 self.assertRaisesErrno(316 self.assertRaisesErrno(EAGAIN, twisted_socket.recv, 4096)329 self.assertRaisesErrno(EAGAIN, twisted_socket.recv, 4096)410 with self.assertRaisesErrno(ENOENT):426 with self.assertRaisesErrno(ENOENT):466 with self.assertRaisesErrno(EAGAIN):650 with self.assertRaisesErrno(EEXIST):731 with self.assertRaisesErrno(ENETUNREACH):[all …]
37 self.assertRaisesErrno(ENOTCONN, s.shutdown, SHUT_RDWR)
66 self.assertRaisesErrno(ENOTCONN, sock.getpeername)78 self.assertRaisesErrno(EINPROGRESS, s.connect, (remotesockaddr, TEST_PORT))141 self.assertRaisesErrno(EINVAL, sock.send, "write test")148 self.assertRaisesErrno(EPERM, sock.recv, 4096)
88 self.assertRaisesErrno(errno.ENOTTY, KillAddrIoctl, addr)
89 self.assertRaisesErrno(errno.EPERM, s.sendto, "foo", addr)116 self.assertRaisesErrno(errno.EPERM, s2.sendto, "foo", addr2)
402 def assertRaisesErrno(self, err_num, f=None, *args): member in NetworkTest
144 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)