~justas.sadzevicius/schooltool/flourish_timetables

« back to all changes in this revision

Viewing changes to src/schooltool/app/tests/test_main.py

  • Committer: Gediminas Paulauskas
  • Date: 2011-02-23 14:26:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2759.
  • Revision ID: menesis@pov.lt-20110223142622-qkgtmofbyeegf6qj
Use Liberation fonts instead of non-free Microsoft fonts (LP: #371655).

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
 
218
218
        >>> def setupStub(fontdir):
219
219
        ...     print 'reportlab set up: %s' % fontdir
220
 
        >>> realSetup = pdf.setUpMSTTCoreFonts
221
 
        >>> pdf.setUpMSTTCoreFonts = setupStub
 
220
        >>> realSetup = pdf.setUpLiberationFonts
 
221
        >>> pdf.setUpLiberationFonts = setupStub
222
222
 
223
223
    First, if a null path is given, nothing happens (PDF support is
224
224
    left disabled):
282
282
        >>> sys.stderr = old_stderr
283
283
        >>> if real_reportlab:
284
284
        ...     sys.modules['reportlab'] = real_reportlab
285
 
        >>> pdf.setUpMSTTCoreFonts = realSetup
 
285
        >>> pdf.setUpLiberationFonts = realSetup
286
286
 
287
287
    """
288
288