Lines Matching refs:assertRaisesErrno
268 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,
468 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
471 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
482 self.assertRaisesErrno(errno.EINVAL,
486 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
506 self.assertRaisesErrno(errno.EAFNOSUPPORT, csocket.Bind, s4, sockaddr)
512 self.assertRaisesErrno(errno.EAFNOSUPPORT, csocket.Bind, s6, sockaddr)
517 self.assertRaisesErrno(errno.EINVAL,
529 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
551 self.assertRaisesErrno(errno.EINVAL,
564 self.assertRaisesErrno(errno.EINVAL, s.sendto, net_test.IPV6_PING,
581 self.assertRaisesErrno(errno.EINVAL, s.sendto, net_test.IPV6_PING,
601 self.assertRaisesErrno(errno.EHOSTUNREACH, s.recv, 32768) # No response.
610 self.assertRaisesErrno(errno.EHOSTUNREACH, s.recv, 32768) # No response.