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

All Samples(24)  |  Call(22)  |  Derive(0)  |  Import(2)

src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_featureinfo.py   MapProxy(Download)
from nose.tools import eq_
 
from mapproxy.featureinfo import (combined_inputs, XSLTransformer,
    XMLFeatureInfoDoc, HTMLFeatureInfoDoc)
from mapproxy.test.helper import strip_whitespace
    def test_as_string(self):
        input_tree = html.fromstring('<p>Foo')
        doc = HTMLFeatureInfoDoc(input_tree)
        assert '<body><p>Foo</p></body>' in strip_whitespace(doc.as_string())
 
    def test_as_etree(self):
        doc = HTMLFeatureInfoDoc('<p>hello</p>')
    def test_combine(self):
        docs = [
            HTMLFeatureInfoDoc('<html><head><title>Hello<body><p>baz</p><p>baz2'),
            HTMLFeatureInfoDoc('<p>foo</p>'),
            HTMLFeatureInfoDoc('<body><p>bar</p></body>'),

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_featureinfo.py   mapproxy(Download)
from nose.tools import eq_
 
from mapproxy.featureinfo import (combined_inputs, XSLTransformer,
    XMLFeatureInfoDoc, HTMLFeatureInfoDoc)
from mapproxy.test.helper import strip_whitespace
    def test_as_string(self):
        input_tree = html.fromstring('<p>Foo')
        doc = HTMLFeatureInfoDoc(input_tree)
        assert '<body><p>Foo</p></body>' in strip_whitespace(doc.as_string())
 
    def test_as_etree(self):
        doc = HTMLFeatureInfoDoc('<p>hello</p>')
    def test_combine(self):
        docs = [
            HTMLFeatureInfoDoc('<html><head><title>Hello<body><p>baz</p><p>baz2'),
            HTMLFeatureInfoDoc('<p>foo</p>'),
            HTMLFeatureInfoDoc('<body><p>bar</p></body>'),