Lines Matching refs:assertRaisesErrno
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,
537 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
540 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
551 self.assertRaisesErrno(errno.EINVAL,
555 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
575 self.assertRaisesErrno(errno.EAFNOSUPPORT, csocket.Bind, s4, sockaddr)
581 self.assertRaisesErrno(errno.EAFNOSUPPORT, csocket.Bind, s6, sockaddr)
586 self.assertRaisesErrno(errno.EINVAL,
598 self.assertRaisesErrno(errno.EADDRNOTAVAIL,
620 self.assertRaisesErrno(errno.EINVAL,
654 self.assertRaisesErrno(
657 self.assertRaisesErrno(
678 self.assertRaisesErrno(errno.EINVAL, s.sendto, net_test.IPV6_PING,
695 self.assertRaisesErrno(errno.EINVAL, s.sendto, net_test.IPV6_PING,
715 self.assertRaisesErrno(errno.EHOSTUNREACH, s.recv, 32768) # No response.
724 self.assertRaisesErrno(errno.EHOSTUNREACH, s.recv, 32768) # No response.
835 self.assertRaisesErrno(errno.EMSGSIZE, s.recv, 32768)