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

All Samples(19)  |  Call(10)  |  Derive(3)  |  Import(6)

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_html2latex_table_converter.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.html2latex.converter import HTML2LatexConverter
from ftw.pdfgenerator.html2latex.subconverters import table
from ftw.pdfgenerator.testing import ZCML_WITH_SITE_LAYER
from ftw.testing import MockTestCase
from unittest2 import TestCase
 
        converter = HTML2LatexConverter(
            context=object(),
            request=object(),
            layout=layout)
    def test_converter_is_default(self):
        converter = HTML2LatexConverter(
            context=object(),
            request=object(),
            layout=object())

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_html2latex_subconverters.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.html2latex.converter import HTML2LatexConverter
from ftw.pdfgenerator.html2latex.subconverter import SubConverter
from ftw.pdfgenerator.interfaces import ISubConverter
from ftw.testing import MockTestCase
from zope.interface.verify import verifyClass
 
        converter = HTML2LatexConverter(
            context=context,
            request=object(),
            layout=object())
 
        converter = HTML2LatexConverter(
            context=object(),
            request=object(),
            layout=layout)

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/base.py   ftw.pdfgenerator(Download)
from ftw.pdfgenerator.html2latex.converter import HTML2LatexConverter
from unittest2 import TestCase
 
 
class SubconverterTestBase(TestCase):
    def setUp(self):
        TestCase.setUp(self)
 
        self.converter = HTML2LatexConverter(
            context=object(),

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_html2latex_hyperlink_converter.py   ftw.pdfgenerator(Download)
# pylint: disable=W0212, W0201
# W0212: Access to a protected member of a client class
# W0201: Attribute defined outside __init__
 
from ftw.pdfgenerator.html2latex.converter import HTML2LatexConverter
 
        self.converter = HTML2LatexConverter(
            context=self.context,
            request=object(),
            layout=self.layout)

src/f/t/ftw.book-2.2.20/ftw/book/latex/converter.py   ftw.book(Download)
from ftw.book.interfaces import IWithinBookLayer
from ftw.book.latex.highlight_subconverter import VisualHighlightSubconverter
from ftw.pdfgenerator import interfaces
from ftw.pdfgenerator.html2latex.converter import HTML2LatexConverter
from zope.component import adapts
class BookHTML2LatexConverter(HTML2LatexConverter):
    implements(interfaces.IHTML2LaTeXConverter)
    adapts(Interface, IWithinBookLayer, interfaces.ILaTeXLayout)
 
    def __init__(self, context, request, layout):

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_html2latex_converter.py   ftw.pdfgenerator(Download)
        class NoSubconvertersConverter(converter.HTML2LatexConverter):
            def get_default_subconverters(self):
                return []
 
        obj = NoSubconvertersConverter(
    def test_convert_with_custom_pattern(self):
        obj = converter.HTML2LatexConverter(
            object(), object(), object())
 
        self.assertEqual(
 
        obj = converter.HTML2LatexConverter(
            object(), object(), object())
 
        self.assertEqual(
    def test_convert_plain(self):
        obj = converter.HTML2LatexConverter(
            object(), object(), object())
 
        self.assertEqual(obj.convert('foo <bar> baz'), 'foo  baz')
    def test_raises_when_convert_started_twice(self):
        obj = converter.HTML2LatexConverter(
            object(), object(), object())
        runner = converter.HTML2LatexConvertRunner(obj, [], '')
 

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_html2latex_patterns.py   ftw.pdfgenerator(Download)
# -*- coding: latin-1 -*-
 
 
from ftw.pdfgenerator.html2latex.converter import HTML2LatexConverter
from ftw.pdfgenerator.html2latex.subconverters import textformatting
from unittest2 import TestCase
 
 
class BasicConverter(HTML2LatexConverter):