moto/tests/test_core/test_socket.py
2023-12-14 20:35:36 -01:00

17 lines
335 B
Python

import socket
import unittest
from moto import mock_dynamodb
class TestSocketPair(unittest.TestCase):
@mock_dynamodb
def test_socket_pair(self) -> None:
a, b = socket.socketpair()
self.assertIsNotNone(a)
self.assertIsNotNone(b)
if a:
a.close()
if b:
b.close()