<s> import mock <EOL> import pytest <EOL> from six import StringIO <EOL> class BaseCompilerTest : <EOL> subprocess_package = None <EOL> @ pytest . fixture <EOL> def stdin ( self ) : <EOL> return StringIO . StringIO ( ) <EOL> stdout = stdin <EOL> @ pytest . fixture <EOL> def subprocess ( self ) : <EOL> return mock . patch ( self . subprocess_package ) </s>
