def testIsPython22(self):
        # NOTE: This will fail with AP 2.1.  Would it fail for old version too?             
        ps = "python string"
        self.assert_(jintrospect.ispython(ps))

        d = {}
        self.assert_(jintrospect.ispython(d))
    def testIsPython(self):
        s = String("Java String")
        self.assert_(not jintrospect.ispython(s))

        self.assert_(jintrospect.ispython(jintrospect))
Example #3
0
    def testIsPython(self):
        s = String("Java String")
        self.assert_(not jintrospect.ispython(s))

        self.assert_(jintrospect.ispython(jintrospect))
 def testIsPython(self):        
     from java.util import Calendar        
     self.failIf(jintrospect.ispython(Calendar.getInstance), "Calendar.getInstance is not Python")
Example #5
0
 def testIsPython(self):
     from java.util import Calendar
     self.failIf(jintrospect.ispython(Calendar.getInstance),
                 "Calendar.getInstance is not Python")