#NEWLINE# def test_write_multiline( self ) : #NEWLINE# #INDENT# mock_logger = mock . Mock ( ) #NEWLINE# _StreamLogger ( mock_logger , self . TEST_LOG_LEVEL ) . write ( 'testing\n1\n2\n3\n\n' ) #NEWLINE# mock_logger . log . assert_has_calls ( [ mock . call ( self . TEST_LOG_LEVEL , 'testing' ) , mock . call ( self . TEST_LOG_LEVEL , '1' ) , mock . call ( self . TEST_LOG_LEVEL , '2' ) , mock . call ( self . TEST_LOG_LEVEL , '3' ) ] )