'Tests split_before_first_argument on a compound statement.'

def testSplittingBeforeFirstArgumentOnCompoundStatement(self):

    try:
        style.SetGlobalStyle(style.CreateStyleFromConfig('{based_on_style:    chromium,    split_before_first_argument:    True}'))
        unformatted_code = textwrap.dedent('                                        if    (long_argument_name_1    ==    1    or\n                                                        long_argument_name_2    ==    2    or\n                                                        long_argument_name_3    ==    3    or\n                                                        long_argument_name_4    ==    4):\n                                                pass\n                                        ')
        expected_formatted_code = textwrap.dedent('                                        if    (long_argument_name_1    ==    1    or    long_argument_name_2    ==    2    or\n                                                        long_argument_name_3    ==    3    or    long_argument_name_4    ==    4):\n                                                pass\n                                        ')
        uwlines = yapf_test_helper.ParseAndUnwrap(unformatted_code)
        self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines))
    finally:
        style.SetGlobalStyle(style.CreateChromiumStyle())
