Searched refs:expected_formatted_code (Results 1 – 9 of 9) sorted by relevance
/external/yapf/yapftests/ |
D | reformatter_buganizer_test.py | 67 expected_formatted_code = """\ 76 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 90 expected_formatted_code = """\ 103 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 112 expected_formatted_code = """\ 120 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 142 expected_formatted_code = """\ 153 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 170 expected_formatted_code = """\ 191 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) [all …]
|
D | yapf_test.py | 41 def _Check(self, unformatted_code, expected_formatted_code): argument 44 self.assertEqual(expected_formatted_code, formatted_code) 56 expected_formatted_code = textwrap.dedent("""\ 60 self._Check(unformatted_code, expected_formatted_code) 111 expected_formatted_code = textwrap.dedent(u"""\ 121 self.assertCodeEqual(expected_formatted_code, formatted_code) 133 expected_formatted_code = textwrap.dedent(u"""\ 144 self.assertCodeEqual(expected_formatted_code, formatted_code) 159 expected_formatted_code = textwrap.dedent(u"""\ 172 self.assertCodeEqual(expected_formatted_code, formatted_code) [all …]
|
D | reformatter_pep8_test.py | 36 expected_formatted_code = textwrap.dedent("""\ 41 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 59 expected_formatted_code = textwrap.dedent("""\ 65 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 72 expected_formatted_code = textwrap.dedent("""\ 77 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 85 expected_formatted_code = textwrap.dedent("""\ 89 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 110 expected_formatted_code = textwrap.dedent("""\ 123 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) [all …]
|
D | reformatter_basic_test.py | 38 expected_formatted_code = textwrap.dedent("""\ 49 expected_formatted_code = textwrap.dedent("""\ 57 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 61 expected_formatted_code = textwrap.dedent("""\ 70 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 74 expected_formatted_code = textwrap.dedent("""\ 78 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 93 expected_formatted_code = textwrap.dedent("""\ 107 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 117 expected_formatted_code = textwrap.dedent("""\ [all …]
|
D | reformatter_python3_test.py | 40 expected_formatted_code = textwrap.dedent("""\ 48 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 55 expected_formatted_code = textwrap.dedent("""\ 60 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 70 expected_formatted_code = textwrap.dedent("""\ 77 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 84 expected_formatted_code = textwrap.dedent("""\ 89 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 93 expected_formatted_code = 'methods.exec(sys.modules[name])\n' 95 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) [all …]
|
D | reformatter_facebook_test.py | 37 expected_formatted_code = textwrap.dedent("""\ 42 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 51 expected_formatted_code = textwrap.dedent("""\ 58 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 66 expected_formatted_code = textwrap.dedent("""\ 74 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 85 expected_formatted_code = textwrap.dedent("""\ 95 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 125 expected_formatted_code = textwrap.dedent("""\ 145 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) [all …]
|
D | blank_line_calculator_test.py | 39 expected_formatted_code = textwrap.dedent("""\ 45 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 63 expected_formatted_code = textwrap.dedent("""\ 81 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 100 expected_formatted_code = textwrap.dedent("""\ 126 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 158 expected_formatted_code = textwrap.dedent("""\ 192 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 265 expected_formatted_code = textwrap.dedent("""\ 278 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) [all …]
|
D | reformatter_style_config_test.py | 37 expected_formatted_code = textwrap.dedent(u"""\ 42 self.assertCodeEqual(expected_formatted_code, 52 expected_formatted_code = textwrap.dedent(u"""\ 57 self.assertCodeEqual(expected_formatted_code, reformatter.Reformat(uwlines)) 68 expected_formatted_code = textwrap.dedent("""\ 73 self.assertCodeEqual(expected_formatted_code,
|
D | reformatter_verify_test.py | 49 expected_formatted_code = textwrap.dedent("""\ 54 self.assertCodeEqual(expected_formatted_code, 71 expected_formatted_code = textwrap.dedent("""\ 83 self.assertCodeEqual(expected_formatted_code, 95 expected_formatted_code = textwrap.dedent("""\ 103 self.assertCodeEqual(expected_formatted_code,
|