<s> """<STR_LIT>""" <EOL> import subprocess <EOL> import unittest <EOL> class PyTestPluginTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_healthcheck_select ( self ) : <EOL> """<STR_LIT>""" <EOL> process = subprocess . Popen ( <EOL> [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> stdout = subprocess . PIPE , <EOL> stderr = subprocess . PIPE , <EOL> ) <EOL> exit_code = process . wait ( ) <EOL> self . assertEqual ( exit_code , <NUM_LIT:0> ) <EOL> stdout = str ( process . stdout . read ( ) ) <EOL> self . assertIn ( '<STR_LIT>' , stdout ) <EOL> self . assertIn ( '<STR_LIT>' , stdout ) <EOL> def test_healthcheck_deselect ( self ) : <EOL> """<STR_LIT>""" <EOL> process = subprocess . Popen ( <EOL> [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> stdout = subprocess . PIPE , <EOL> stderr = subprocess . PIPE , <EOL> ) <EOL> exit_code = process . wait ( ) <EOL> self . assertEqual ( exit_code , <NUM_LIT:0> ) <EOL> stdout = str ( process . stdout . read ( ) ) <EOL> self . assertIn ( '<STR_LIT>' , stdout ) <EOL> self . assertIn ( '<STR_LIT>' , stdout ) </s>
