def testMultipletuplesToXML(self):
     xmls = list(tuplesToXML([('p',{'a':'a'}, [], 'b'),
                              ('p'),
                              ('p', {}, [], 'b')]))
     self.assertEqual(len(xmls), 3)
     self._testEqual(xmls[0], '<p a="a">b</p>')
     self._testEqual(xmls[1], '<p />')
     self._testEqual(xmls[2], '<p>b</p>')
 def testMultipletuplesToXML(self):
     xmls = list(
         tuplesToXML([('p', {
             'a': 'a'
         }, [], 'b'), ('p'), ('p', {}, [], 'b')]))
     self.assertEqual(len(xmls), 3)
     self._testEqual(xmls[0], '<p a="a">b</p>')
     self._testEqual(xmls[1], '<p />')
     self._testEqual(xmls[2], '<p>b</p>')
 def testOnetuplesToXML2(self):
     xmls = list(tuplesToXML([('p', {'a': 'a'}, [], 'b')]))
     self.assertEqual(len(xmls), 1)
     self._testEqual(xmls[0], '<p a="a">b</p>')
 def testOnetuplesToXML2(self):
     xmls = list(tuplesToXML([('p',{'a':'a'}, [], 'b')]))
     self.assertEqual(len(xmls), 1)
     self._testEqual(xmls[0], '<p a="a">b</p>')