Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(21)  |  Derive(0)  |  Import(0)

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_base_layout.py   ftw.pdfgenerator(Download)
        self.assertEqual(layout.get_packages_latex(), '')
 
        layout.use_package('inputenc', 'utf8')
        self.assertEqual(layout.get_packages_latex(),
                         '\\usepackage[utf8]{inputenc}\n')
 
        layout.use_package(u'titlesec', 'noindentafter',
                         '\\usepackage[noindentafter]{titlesec}\n')
 
        layout.use_package('titlesec', 'largestsep')
        self.assertEqual(
            layout.get_packages_latex(),
            '\\usepackage[utf8]{inputenc}\n'
            '\\usepackage[noindentafter, largestsep]{titlesec}\n')
 
        layout.use_package('titlesec', 'largestsep')
            '\\usepackage[noindentafter, largestsep]{titlesec}\n')
 
        layout.use_package('titlesec', options='', append_options=False)
        self.assertEqual(
            layout.get_packages_latex(),