<s> import unittest , os , sys <EOL> from custom_test_case import CustomTestCase <EOL> PROJECT_ROOT = os . path . dirname ( __file__ ) <EOL> sys . path . append ( os . path . join ( PROJECT_ROOT , "<STR_LIT:..>" ) ) <EOL> from CodeConverter import CodeConverter <EOL> class TestMultilines ( unittest . TestCase , CustomTestCase ) : <EOL> def test_multilines_to_one_line ( self ) : <EOL> source = """<STR_LIT>""" <EOL> expected = """<STR_LIT>""" <EOL> self . assertSentence ( CodeConverter ( source ) . multilines_to_one_line ( ) . s , expected ) <EOL> def test_multilines_to_one_line_with_args ( self ) : <EOL> source = """<STR_LIT>""" <EOL> expected = '<STR_LIT>' <EOL> self . assertSentence ( CodeConverter ( source ) . multilines_to_one_line ( ) . s , expected ) <EOL> def test_multilines_to_one_line_for_trailing_white_space ( self ) : <EOL> source = """<STR_LIT>""" <EOL> expected = """<STR_LIT>""" <EOL> self . assertSentence ( CodeConverter ( source ) . multilines_to_one_line ( ) . s , expected ) <EOL> def test_multilines_to_one_line_for_blank_line ( self ) : <EOL> source = """<STR_LIT>""" <EOL> expected = """<STR_LIT>""" <EOL> self . assertSentence ( CodeConverter ( source ) . multilines_to_one_line ( ) . s , expected ) <EOL> def test_multiline_with_braces ( self ) : <EOL> source = """<STR_LIT>""" <EOL> expected = """<STR_LIT>""" <EOL> result = CodeConverter ( source ) . result ( ) <EOL> self . assertSentence ( result , expected ) <EOL> def test_multiline_expression ( self ) : <EOL> source = """<STR_LIT>""" <EOL> expected = """<STR_LIT>""" <EOL> result = CodeConverter ( source ) . result ( ) <EOL> self . assertSentence ( result , expected ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
