~ubuntu-branches/ubuntu/wily/python-imaging/wily

« back to all changes in this revision

Viewing changes to Tests/test_font_bdf.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (1.1.4)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130131204920-7tnuhqhlsqdza4c2
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from tester import *
 
2
 
 
3
from PIL import Image, FontFile, BdfFontFile
 
4
 
 
5
filename = "Images/courB08.bdf"
 
6
 
 
7
def test_sanity():
 
8
 
 
9
    file = open(filename, "rb")
 
10
    font = BdfFontFile.BdfFontFile(file)
 
11
 
 
12
    assert_true(isinstance(font, FontFile.FontFile))
 
13
    assert_equal(len([_f for _f in font.glyph if _f]), 190)