# Test copied from test_ssl.py of the standard library,
# to verify the ssl module is working

import ssl
import unittest


class TestSocketSSLTests(unittest.TestCase):
    def test_basic(self):
        if hasattr(ssl, "RAND_egd"):
            self.assertRaises(TypeError, ssl.RAND_egd, 1)
            self.assertRaises(TypeError, ssl.RAND_egd, "foo", 1)
        ssl.RAND_add("this is a random string", 75.0)
