Lines Matching refs:assertRaisesErrno
120 self.assertRaisesErrno(ENOTCONN, sock.getpeername)
146 self.assertRaisesErrno(ENOTCONN, s.getpeername)
370 self.assertRaisesErrno(
383 self.assertRaisesErrno(EINVAL, DiagDump, op + 17)
423 with self.assertRaisesErrno(ENOENT):
498 self.assertRaisesErrno(ENOENT, self.sock_diag.CloseSocket, req)
562 self.assertRaisesErrno(ENOENT, open, self.TCP_DEFAULT_INIT_RWND, "w")
584 self.assertRaisesErrno(EINPROGRESS, s.connect, (dstsockaddr, 53))
609 self.assertRaisesErrno(EINVAL, sock.accept)
722 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)
728 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, parent)
732 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)
740 self.assertRaisesErrno(ENOENT, self.sock_diag.GetSockInfo, child)
770 self.assertRaisesErrno(ENOTCONN, self.s.recv, 4096)
772 self.assertRaisesErrno(ECONNABORTED, self.s.send, "foo")
773 self.assertRaisesErrno(EINVAL, self.s.accept)
784 self.assertRaisesErrno(EPIPE, self.accepted.send, "foo")
851 self.assertRaisesErrno(errno, self.accepted.recv, 4096)
854 self.assertRaisesErrno(EPIPE, self.accepted.send, "foo")
997 self.assertRaisesErrno(EDESTADDRREQ, s.send, "foo")
1017 self.assertRaisesErrno(
1107 self.assertRaisesErrno(EPERM, self.FilterEstablishedSockets,