<s> import os <EOL> import socket <EOL> import unittest <EOL> from st2common . util import system_info <EOL> class TestLogger ( unittest . TestCase ) : <EOL> def test_process_info ( self ) : <EOL> process_info = system_info . get_process_info ( ) <EOL> self . assertEqual ( process_info [ '<STR_LIT>' ] , socket . gethostname ( ) ) <EOL> self . assertEqual ( process_info [ '<STR_LIT>' ] , os . getpid ( ) ) </s>
