Beispiel #1
0
 def test_buildAttachPoint(self):
     attachPoint = builder.buildAttachPoint([7, 3])
     self.assertEqual(getXML(attachPoint.toXML),
                      '<AttachPoint>'
                      '  <!-- PointCount=2 -->'
                      '  <PointIndex index="0" value="3"/>'
                      '  <PointIndex index="1" value="7"/>'
                      '</AttachPoint>')
 def test_buildAttachPoint(self):
     attachPoint = builder.buildAttachPoint([7, 3])
     self.assertEqual(getXML(attachPoint.toXML),
                      '<AttachPoint>'
                      '  <!-- PointCount=2 -->'
                      '  <PointIndex index="0" value="3"/>'
                      '  <PointIndex index="1" value="7"/>'
                      '</AttachPoint>')
Beispiel #3
0
 def test_buildAttachPoint(self):
     attachPoint = builder.buildAttachPoint([7, 3])
     assert getXML(attachPoint.toXML) == [
         "<AttachPoint>",
         "  <!-- PointCount=2 -->",
         '  <PointIndex index="0" value="3"/>',
         '  <PointIndex index="1" value="7"/>',
         "</AttachPoint>",
     ]
Beispiel #4
0
 def test_buildAttachPoint_empty(self):
     assert builder.buildAttachPoint([]) is None
 def test_buildAttachPoint_empty(self):
     self.assertIsNone(builder.buildAttachPoint([]))