Beispiel #1
0
 def setUp( self ):
     sample= os.path.join("test","837-example.txt")
     with open( sample, "rU" ) as claims:
         self.claimText= "".join(x.strip() for x in claims)
     msg= parse_837p.unmarshall( self.claimText, Factory )
     msg.name= '837_example'
     msg.save()
Beispiel #2
0
 def testPersist837p( self ):
     try:
         msg= parse_837p.unmarshall( self.some837, Factory )
     except ParseError, e:
         print( '***', e )
         self.fail( "Claim is supposed to be 837-Professional")