X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9938c92fd72deda1156aca79946d7996a5365eaa..a4c11a75e12300abfbe4c36854e450d42bdd1ee7:/tests/test_black.py?ds=inline diff --git a/tests/test_black.py b/tests/test_black.py index 0e73eb1..fdd1994 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -391,6 +391,13 @@ class BlackTestCase(unittest.TestCase): black.assert_stable(source, not_normalized, mode=mode) @patch("black.dump_to_file", dump_to_stderr) + def test_docstring(self) -> None: + source, expected = read_data("docstring") + actual = fs(source) + self.assertFormatEqual(expected, actual) + black.assert_equivalent(source, actual) + black.assert_stable(source, actual, black.FileMode()) + def test_long_strings(self) -> None: """Tests for splitting long strings.""" source, expected = read_data("long_strings")