예제 #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())
예제 #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())
예제 #3
0
 def testParse(self):
     message = parse_278.unmarshall(self.msg1)
     self.assertEqual(self.msg1, message.marshall())
예제 #4
0
 def testParse(self):
     message = parse_278.unmarshall(self.msg1)
     self.assertEquals(self.msg1, message.marshall())