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))
예제 #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")
예제 #5
0
 def testIsPython(self):
     from java.util import Calendar
     self.failIf(jintrospect.ispython(Calendar.getInstance),
                 "Calendar.getInstance is not Python")