Did I find the right examples for you? yes no

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

src/t/x/txAWS-0.2.3/txaws/tests/test_wsdl.py   txAWS(Download)
        foo.bar = "spam"
        self.assertEqual("<foo><bar>spam</bar></foo>",
                         etree.tostring(schema.dump(foo)))
 
    def test_dump_with_multiple_children(self):
        foo.egg = "spam2"
        self.assertEqual("<foo><bar>spam1</bar><egg>spam2</egg></foo>",
                         etree.tostring(schema.dump(foo)))
 
    def test_dump_with_missing_attribute(self):
        schema.add(LeafSchema("bar"), min_occurs=0)
        foo = NodeItem(schema)
        self.assertEqual("<foo/>", etree.tostring(schema.dump(foo)))
 
 
        foo.bar.egg = "spam"
        self.assertEqual("<foo><bar><egg>spam</egg></bar></foo>",
                         etree.tostring(schema.dump(foo)))
 
    def test_set_with_unknown_tag(self):
        foo = schema.create(root)
        foo.bar = None
        self.assertEqual("<foo/>", etree.tostring(schema.dump(foo)))
 
    def test_set_with_non_leaf_tag(self):