'Tests split_before_first_argument on a function call.'

def testSplittingBeforeFirstArgumentOnFunctionCall(self):

    try:
        style.SetGlobalStyle(style.CreateStyleFromConfig('{based_on_style:    chromium,    split_before_first_argument:    True}'))
        unformatted_code = textwrap.dedent('                                        a_very_long_function_name("long    string    with    formatting    {0:s}".format(\n                                                        "mystring"))\n                                        ')
        expected_formatted_code = textwrap.dedent('                                        a_very_long_function_name(\n                                                        "long    string    with    formatting    {0:s}".format("mystring"))\n                                        ')
        uwlines = yapf_test_helper.ParseAndUnwrap(unformatted_code)
        self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines))
    finally:
        style.SetGlobalStyle(style.CreateChromiumStyle())
