def testPreloadVar(self): import clr self.assertTrue(clr.getPreload() is False, clr.getPreload()) clr.setPreload(False) self.assertTrue(clr.getPreload() is False, clr.getPreload()) try: clr.setPreload(True) self.assertTrue(clr.getPreload() is True, clr.getPreload()) clr.setPreload(0) self.assertTrue(clr.getPreload() is False, clr.getPreload()) clr.setPreload(1) self.assertTrue(clr.getPreload() is True, clr.getPreload()) import System.Configuration content = dir(System.Configuration) self.assertTrue(len(content) > 10, content) finally: clr.setPreload(False)
def test_preload_var(): import clr assert clr.getPreload() is False, clr.getPreload() clr.setPreload(False) assert clr.getPreload() is False, clr.getPreload() try: clr.setPreload(True) assert clr.getPreload() is True, clr.getPreload() clr.setPreload(0) assert clr.getPreload() is False, clr.getPreload() clr.setPreload(1) assert clr.getPreload() is True, clr.getPreload() import System.Configuration content = dir(System.Configuration) assert len(content) > 10, content finally: clr.setPreload(False)
def test_preload_var(self): import clr self.assertTrue(clr.getPreload() is False, clr.getPreload()) clr.setPreload(False) self.assertTrue(clr.getPreload() is False, clr.getPreload()) try: clr.setPreload(True) self.assertTrue(clr.getPreload() is True, clr.getPreload()) clr.setPreload(0) self.assertTrue(clr.getPreload() is False, clr.getPreload()) clr.setPreload(1) self.assertTrue(clr.getPreload() is True, clr.getPreload()) import System.Configuration content = dir(System.Configuration) self.assertTrue(len(content) > 10, content) finally: clr.setPreload(False)
def testPreloadVar(self): import clr self.failUnless(clr.getPreload() is False, clr.getPreload()) clr.setPreload(False) self.failUnless(clr.getPreload() is False, clr.getPreload()) try: clr.setPreload(True) self.failUnless(clr.getPreload() is True, clr.getPreload()) clr.setPreload(0) self.failUnless(clr.getPreload() is False, clr.getPreload()) clr.setPreload(1) self.failUnless(clr.getPreload() is True, clr.getPreload()) import System.Configuration content = dir(System.Configuration) self.failUnless(len(content) > 10, content) finally: clr.setPreload(False)
def test_preload_var(): import clr assert clr.getPreload() is False, clr.getPreload() clr.setPreload(False) assert clr.getPreload() is False, clr.getPreload() try: clr.setPreload(True) assert clr.getPreload() is True, clr.getPreload() clr.setPreload(0) assert clr.getPreload() is False, clr.getPreload() clr.setPreload(1) assert clr.getPreload() is True, clr.getPreload() import System.Configuration content = dir(System.Configuration) assert len(content) > 10, content finally: clr.setPreload(False)