mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-05 14:10:52 +03:00
7a866e7431
This reverts commit 0c47ce00b1
.
23 lines
449 B
Python
23 lines
449 B
Python
from helper import unittest, PillowTestCase
|
|
|
|
from PIL import FontFile, BdfFontFile
|
|
|
|
filename = "Images/courB08.bdf"
|
|
|
|
|
|
class TestImage(PillowTestCase):
|
|
|
|
def test_sanity(self):
|
|
|
|
file = open(filename, "rb")
|
|
font = BdfFontFile.BdfFontFile(file)
|
|
|
|
self.assertIsInstance(font, FontFile.FontFile)
|
|
self.assertEqual(len([_f for _f in font.glyph if _f]), 190)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|
|
|
|
# End of file
|