@pytest.fixture
def mock_socket():
    mocksock = mock.Mock(spec=socket.socket)
    return mocksock
Serialize the event to a json string.
dataset/ETHPy150Open pyGrowler/Growler/tests/mocks/__init__.py/mock_socket--crossover with--dataset/ETHPy150Open artirix/logcabin/logcabin/event.py/Event.to_json