Searched refs:assertRaisesErrno (Results 1 – 10 of 10) sorted by relevance
321 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV4_PING)325 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV6_PING)412 self.assertRaisesErrno(errno.EAFNOSUPPORT, function, *args)453 self.assertRaisesErrno(errno.EINVAL, s.bind, ("127.0.0.1", 22))472 self.assertRaisesErrno(errno.EAGAIN, s4.recv, 32768)477 self.assertRaisesErrno(errno.EADDRINUSE, s6.bind, ("0.0.0.0", 167))482 self.assertRaisesErrno(errno.EINVAL, s.bind, ("0.0.0.0", 5429))496 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::1", 22))515 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::", 5429))519 self.assertRaisesErrno(errno.EADDRNOTAVAIL,[all …]
73 self.assertRaisesErrno(ENOTCONN, sock.getpeername)99 self.assertRaisesErrno(ENOTCONN, s.getpeername)293 self.assertRaisesErrno(306 self.assertRaisesErrno(EINVAL, DiagDump, op + 17)374 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)441 self.assertRaisesErrno(EINVAL, sock.accept)554 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)560 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, parent)564 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)572 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)[all …]
39 self.assertRaisesErrno(errno.ENOENT, LookupMap, map_fd, key)48 self.assertRaisesErrno(errno.ENOENT, LookupMap, map_fd, 101)53 self.assertRaisesErrno(errno.ENOENT, GetNextKey, map_fd, key)99 self.assertRaisesErrno(errno.EAGAIN, csocket.Recvfrom, sock, 4096, 0)
146 self.assertRaisesErrno(164 self.assertRaisesErrno(180 self.assertRaisesErrno(317 self.assertRaisesErrno(EAGAIN, twisted_socket.recv, 4096)
37 self.assertRaisesErrno(ENOTCONN, s.shutdown, SHUT_RDWR)
123 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstaddr, 53))722 self.assertRaisesErrno(errno.ENETUNREACH, s.sendto, UDP_PAYLOAD,856 self.assertRaisesErrno(989 self.assertRaisesErrno(1003 self.assertRaisesErrno(1007 self.assertRaisesErrno(errno.ENOENT,1022 self.assertRaisesErrno(1051 self.assertRaisesErrno(1106 self.assertRaisesErrno(errno.ENETUNREACH,
88 self.assertRaisesErrno(errno.ENOTTY, KillAddrIoctl, addr)
117 self.assertRaisesErrno(errno.EADDRNOTAVAIL, self.BindToAddress, address)118 self.assertRaisesErrno(errno.EINVAL,
100 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)
365 def assertRaisesErrno(self, err_num, f, *args): member in NetworkTest