Home
last modified time | relevance | path

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

/system/extras/tests/net_test/
Dping6_test.py268 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV4_PING)
272 self.assertRaisesErrno(errno.EDESTADDRREQ, s.send, net_test.IPV6_PING)
359 self.assertRaisesErrno(errno.EAFNOSUPPORT, function, *args)
400 self.assertRaisesErrno(errno.EINVAL, s.bind, ("127.0.0.1", 22))
419 self.assertRaisesErrno(errno.EAGAIN, s4.recv, 32768)
424 self.assertRaisesErrno(errno.EADDRINUSE, s6.bind, ("0.0.0.0", 167))
429 self.assertRaisesErrno(errno.EINVAL, s.bind, ("0.0.0.0", 5429))
443 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::1", 22))
462 self.assertRaisesErrno(errno.EINVAL, s.bind, ("::", 5429))
466 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
[all …]
Dsock_diag_test.py56 self.assertRaisesErrno(ENOTCONN, sock.getpeername)
92 self.assertRaisesErrno(ENOTCONN, s.getpeername)
251 self.assertRaisesErrno(
264 self.assertRaisesErrno(EINVAL, DiagDump, op + 17)
316 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)
330 self.assertRaisesErrno(EOPNOTSUPP, self.sock_diag.CloseSocketFromFd, s)
389 self.assertRaisesErrno(EINVAL, sock.accept)
452 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockDiag, child)
458 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockDiag, parent)
462 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockDiag, child)
[all …]
Dtcp_nuke_addr_test.py182 self.assertRaisesErrno(errno.ENOTCONN, thread.sock.getpeername)
183 self.assertRaisesErrno(errno.EISCONN, thread.sock.connect,
185 self.assertRaisesErrno(errno.EPIPE, thread.sock.send, "foo")
193 self.assertRaisesErrno(errno.ENOTCONN, sock.getpeername)
246 self.assertRaisesErrno(errno.ENOTCONN, sock.getpeername)
Dsrcaddr_selection_test.py112 self.assertRaisesErrno(errno.EADDRNOTAVAIL, self.BindToAddress, address)
113 self.assertRaisesErrno(errno.EINVAL,
Dmultinetwork_test.py120 self.assertRaisesErrno(errno.EINPROGRESS, s.connect, (dstaddr, 53))
593 self.assertRaisesErrno(errno.ENETUNREACH, s.sendto, UDP_PAYLOAD,
725 self.assertRaisesErrno(
Dneighbour_test.py98 self.assertRaisesErrno(errno.EAGAIN, self.sock.recvfrom, 4096, MSG_PEEK)
Dnet_test.py340 def assertRaisesErrno(self, err_num, f, *args): member in NetworkTest