Beispiel #1
0
 def testPythonVisitorWorks(self):
     python = FlatPythonVisitor("parse_278")
     parse_278.visit(python)
     text = python.getSource()
     exec(text)
     self.assertEqual(type(parse_278), Message)
     msg = parse_278.unmarshall(self.msg1)
     # XXX - check the resulting structure
     self.assertEqual(self.msg1, msg.marshall())
Beispiel #2
0
 def testPythonVisitorWorks(self):
     python = FlatPythonVisitor("parse_278")
     parse_278.visit(python)
     text = python.getSource()
     exec text
     self.assertEqual(type(parse_278), Message)
     msg = parse_278.unmarshall(self.msg1)
     # XXX - check the resulting structure
     self.assertEquals(self.msg1, msg.marshall())
Beispiel #3
0
 def testParse(self):
     message = parse_278.unmarshall(self.msg1)
     self.assertEqual(self.msg1, message.marshall())
Beispiel #4
0
 def testParse(self):
     message = parse_278.unmarshall(self.msg1)
     self.assertEquals(self.msg1, message.marshall())