Home
last modified time | relevance | path

Searched refs:assertRaisesErrno (Results 1 – 10 of 10) sorted by relevance

/kernel/tests/net/test/
Dping6_test.py321 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 …]
Dsock_diag_test.py73 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 …]
Dbpf_test.py39 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)
Dxfrm_test.py146 self.assertRaisesErrno(
164 self.assertRaisesErrno(
180 self.assertRaisesErrno(
317 self.assertRaisesErrno(EAGAIN, twisted_socket.recv, 4096)
Dleak_test.py37 self.assertRaisesErrno(ENOTCONN, s.shutdown, SHUT_RDWR)
Dmultinetwork_test.py123 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,
Dtcp_nuke_addr_test.py88 self.assertRaisesErrno(errno.ENOTTY, KillAddrIoctl, addr)
Dsrcaddr_selection_test.py117 self.assertRaisesErrno(errno.EADDRNOTAVAIL, self.BindToAddress, address)
118 self.assertRaisesErrno(errno.EINVAL,
Dneighbour_test.py100 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)
Dnet_test.py365 def assertRaisesErrno(self, err_num, f, *args): member in NetworkTest