#!/usr/bin/env python

from capturemock import capturemock, RECORD

@capturemock("socket", mode=RECORD)
def test():
    import socket
    
    print(socket.gethostname())

try:
    test()
except:
    import sys; sys.stderr.write(str(sys.exc_info()[1]))
    


a8c27a5d44bac05a3dc5e4ad8dc3c040a0a15674
<mask token>

<mask token>


@capturemock('socket', mode=RECORD)
def test():
    import socket
    print(socket.gethostname())


<mask token>

<mask token>


@capturemock('socket', mode=RECORD)
def test():
    import socket
    print(socket.gethostname())


try:
    test()
except:
    import sys
    sys.stderr.write(str(sys.exc_info()[1]))

from capturemock import capturemock, RECORD


@capturemock('socket', mode=RECORD)
def test():
    import socket
    print(socket.gethostname())


try:
    test()
except:
    import sys
    sys.stderr.write(str(sys.exc_info()[1]))

#!/usr/bin/env python

from capturemock import capturemock, RECORD

@capturemock("socket", mode=RECORD)
def test():
    import socket
    
    print(socket.gethostname())

try:
    test()
except:
    import sys; sys.stderr.write(str(sys.exc_info()[1]))
    

