Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/y/PyXB-1.2.3/tests/trac/trac-0043/tst-1.py   PyXB(Download)
    def testCode (self):
 
        x = A.a2('a2m-value', 'legal')
        self.assertEqual('a2m-value', x.a2member)
        self.assertEqual(B.bst.legal, x.a2b)
 
        myobj = B.b1(x, 'legal')
        self.assertEqual(myobj.a2elt, x)
 
        x2 = A.a2('anotherValue', 'legal')