diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 3968b53c7..a5d637432 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -230,10 +230,12 @@ class TestImageFont(PillowTestCase): # Test that textsize() correctly connects to multiline_textsize() self.assertEqual(draw.textsize(TEST_TEXT, font=ttf), draw.multiline_textsize(TEST_TEXT, font=ttf)) + # Test that multiline_textsize corresponds to ImageFont.textsize() # for single line text self.assertEqual(ttf.getsize('A'), draw.multiline_textsize('A', font=ttf)) + # Test that textsize() can pass on additional arguments # to multiline_textsize() draw.textsize(TEST_TEXT, font=ttf, spacing=4)