Example #1
0
    def setUpClass(cls):
        """Setup test class."""
        super(TestWiktionaryGraph, cls).setUpClass()

        cls.pages = {
            'en': DryPage(cls.enwikt, 'origin'),
            'en2': DryPage(cls.enwikt, 'origin2'),
            'fr': DryPage(cls.frwikt, 'origin'),
            'pl': DryPage(cls.plwikt, 'origin'),
        }
    def setUpClass(cls):
        """Setup test class."""
        if isinstance(interwiki_graph.pydot, ImportError):
            raise unittest.SkipTest('pydot not installed')
        super(TestWiktionaryGraph, cls).setUpClass()

        cls.pages = {
            'en': DryPage(cls.enwikt, 'origin'),
            'en2': DryPage(cls.enwikt, 'origin2'),
            'fr': DryPage(cls.frwikt, 'origin'),
            'pl': DryPage(cls.plwikt, 'origin'),
        }