<s> """<STR_LIT>""" <EOL> import time <EOL> from cloudroast . compute . fixtures import ComputeFixture <EOL> class ConsoleOutputTests ( ComputeFixture ) : <EOL> def test_get_console_output ( self ) : <EOL> server = self . server_behaviors . create_active_server ( ) . entity <EOL> timeout = self . servers_config . server_boot_timeout <EOL> expected_console_output_length = <NUM_LIT:100> <EOL> console = self . console_output_client . get_console_output ( <EOL> server . id , expected_console_output_length ) . entity <EOL> self . assertIsNotNone ( console ) <EOL> start = int ( time . time ( ) ) <EOL> while console . output in [ "<STR_LIT:0>" , None ] : <EOL> console = self . console_output_client . get_console_output ( <EOL> server . id , expected_console_output_length ) . entity <EOL> if int ( time . time ( ) - start ) >= timeout : <EOL> break <EOL> self . assertNotIn ( console . output , [ "<STR_LIT:0>" , None ] , <EOL> "<STR_LIT>" ) <EOL> self . assertGreaterEqual ( <EOL> expected_console_output_length , <EOL> len ( console . output . split ( "<STR_LIT:\n>" ) ) , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) </s>
