Example #1
0
 def testApp(self):
     instance = app.elt(base='hi', app='there')
     xmlt = six.u(
         '<app:elt xmlns:app="urn:app" xmlns:common="urn:common"><common:base><common:bstr>hi</common:bstr></common:base><common:app><common:astr>there</common:astr></common:app></app:elt>'
     )
     xmld = xmlt.encode('utf-8')
     self.assertEqual(instance.toxml('utf-8', root_only=True), xmld)
Example #2
0
 def testApp (self):
     x = common4app.extended('hi', 'there')
     a = app.elt(x)
     xmlt = u'<app:elt xmlns:app="urn:app" xmlns:common="urn:common"><app:xcommon><common:elt>hi</common:elt><common:extElt>there</common:extElt></app:xcommon></app:elt>'
     xmld = xmlt.encode('utf-8')
     self.assertEqual(a.toxml("utf-8", root_only=True), xmld)
Example #3
0
 def testApp (self):
     x = common4app.extended('hi', 'there')
     a = app.elt(x)
     self.assertEquals('<app:elt xmlns:app="urn:app" xmlns:common="urn:common"><app:xcommon><common:elt>hi</common:elt><common:extElt>there</common:extElt></app:xcommon></app:elt>', a.toxml("utf-8", root_only=True))
Example #4
0
 def testApp(self):
     x = common4app.extended('hi', 'there')
     a = app.elt(x)
     self.assertEquals(
         '<app:elt xmlns:app="urn:app" xmlns:common="urn:common"><app:xcommon><common:elt>hi</common:elt><common:extElt>there</common:extElt></app:xcommon></app:elt>',
         a.toxml(root_only=True))
Example #5
0
 def testApp(self):
     x = common4app.extended('hi', 'there')
     a = app.elt(x)
     xmlt = u'<app:elt xmlns:app="urn:app" xmlns:common="urn:common"><app:xcommon><common:elt>hi</common:elt><common:extElt>there</common:extElt></app:xcommon></app:elt>'
     xmld = xmlt.encode('utf-8')
     self.assertEqual(a.toxml("utf-8", root_only=True), xmld)
Example #6
0
 def testApp (self):
     instance = app.elt(base='hi', app='there')
     xmlt = six.u('<app:elt xmlns:app="urn:app" xmlns:common="urn:common"><common:base><common:bstr>hi</common:bstr></common:base><common:app><common:astr>there</common:astr></common:app></app:elt>')
     xmld = xmlt.encode('utf-8')
     self.assertEqual(instance.toxml('utf-8', root_only=True), xmld)