Beispiel #1
0
 def test_read_syscall_ssl_error(self):
     s = mock.MagicMock()
     s.read = mock.MagicMock(side_effect=SSL.SysCallError())
     s = tcp.Reader(s)
     tutils.raises(TlsException, s.read, 1)
Beispiel #2
0
 def test_read_syscall_ssl_error(self):
     s = mock.MagicMock()
     s.read = mock.MagicMock(side_effect=SSL.SysCallError())
     s = tcp.Reader(s)
     with pytest.raises(exceptions.TlsException):
         s.read(1)