def test_cp24115(self): import IronPythonTest.DynamicRegressions as DR class TestObj(object): pass DR.cp24115(TestObj())
def test_cp24117(): if False: #Expectation AreEqual(DR.cp24117(xrange), "<type 'xrange'>") AreEqual(DR.cp24117(xrange(3)), "xrange(3)") else: #Actual AreEqual(DR.cp24117(xrange), "IronPython.Runtime.Types.PythonType") AreEqual(DR.cp24117(xrange(3)), "IronPython.Runtime.XRange")
def test_cp24111(): class TestObj(object): def __init__(self, nz): self.nz = nz def __nonzero__(self): return self.nz for x in [0, 1]: AreEqual(DR.cp24111(TestObj(x)), not TestObj(x))
def test_cp24111(self): import IronPythonTest.DynamicRegressions as DR class TestObj(object): def __init__(self, nz): self.nz = nz def __nonzero__(self): return self.nz for x in [0, 1]: self.assertEqual(DR.cp24111(TestObj(x)), not TestObj(x))
def test_cp24118(self): import IronPythonTest.DynamicRegressions as DR #TODO: once 26089 gets fixed the following needs actual verification. That is, #right now DR.cp24118 just calls GetMethodTest without doing much validation. DR.cp24118(sys.modules[__name__])
def test_cp24115(): class TestObj(object): pass DR.cp24115(TestObj())
def test_cp24118(): #TODO: once 26089 gets fixed the following needs actual verification. That is, #right now DR.cp24118 just calls GetMethodTest without doing much validation. DR.cp24118(sys.modules[__name__])
def test_cp24117(): AreEqual(DR.cp24117(xrange), "IronPython.Runtime.Types.PythonType") AreEqual(DR.cp24117(xrange(3)), "IronPython.Runtime.XRange")
def test_cp24118(): # TODO: once 26089 gets fixed the following needs actual verification. That is, # right now DR.cp24118 just calls GetMethodTest without doing much validation. DR.cp24118(sys.modules[__name__])
def test_cp24117(self): import IronPythonTest.DynamicRegressions as DR self.assertEqual(DR.cp24117(xrange), "IronPython.Runtime.Types.PythonType") self.assertEqual(DR.cp24117(xrange(3)), "IronPython.Runtime.XRange")