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

All Samples(7)  |  Call(7)  |  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_babel()
        self.assertEqual(layout.get_packages_latex(),
                         '\\usepackage[brazilian]{babel}\n')
        self.assertEqual(layout.get_packages_latex(), '')
 
        layout.use_babel()
        self.assertEqual(layout.get_packages_latex(),
                         '\\usepackage[british]{babel}\n')
        self.assertEqual(layout.get_packages_latex(), '')
 
        layout.use_babel('british')
        self.assertEqual(layout.get_packages_latex(),
                         '\\usepackage[british]{babel}\n')
        self.assertEqual(layout.get_packages_latex(), '')
 
        layout.use_babel(['british', 'french', 'latin'])
        self.assertEqual(layout.get_packages_latex(),
                         '\\usepackage[latin, french, british]{babel}\n')
        self.assertEqual(layout.get_packages_latex(), '')
 
        layout.use_babel()
        self.assertEqual(layout.get_packages_latex(),
                         '\\usepackage{babel}\n')