moto/tests/test_core/test_socket.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
326 B
Python
Raw Normal View History

2019-07-03 01:21:19 +00:00
import unittest
from moto import mock_dynamodb
2019-07-03 01:21:19 +00:00
import socket
class TestSocketPair(unittest.TestCase):
@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()