moto/tests/test_core/test_socket.py
2022-03-11 21:29:16 -01:00

16 lines
326 B
Python

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