2019-07-03 01:21:19 +00:00
|
|
|
import unittest
|
2022-03-11 22:29:16 +00:00
|
|
|
from moto import mock_dynamodb
|
2019-07-03 01:21:19 +00:00
|
|
|
import socket
|
|
|
|
|
|
|
|
|
|
|
|
class TestSocketPair(unittest.TestCase):
|
2022-03-11 22:29:16 +00:00
|
|
|
@mock_dynamodb
|
2019-07-03 01:21:19 +00:00
|
|
|
def test_socket_pair(self):
|
|
|
|
a, b = socket.socketpair()
|
|
|
|
self.assertIsNotNone(a)
|
|
|
|
self.assertIsNotNone(b)
|
|
|
|
if a:
|
|
|
|
a.close()
|
|
|
|
if b:
|
|
|
|
b.close()
|