Ejemplo n.º 1
0
 def testSetBool(self):
     use_bool = pg.get_bool()
     try:
         pg.set_bool(False)
         r = pg.get_bool()
         pg.set_bool(use_bool)
         self.assertIsInstance(r, bool)
         self.assertIs(r, False)
         pg.set_bool(True)
         r = pg.get_bool()
         self.assertIsInstance(r, bool)
         self.assertIs(r, True)
     finally:
         pg.set_bool(use_bool)
     r = pg.get_bool()
     self.assertIsInstance(r, bool)
     self.assertIs(r, use_bool)
Ejemplo n.º 2
0
 def testSetBool(self):
     use_bool = pg.get_bool()
     try:
         pg.set_bool(False)
         r = pg.get_bool()
         pg.set_bool(use_bool)
         self.assertIsInstance(r, bool)
         self.assertIs(r, False)
         pg.set_bool(True)
         r = pg.get_bool()
         self.assertIsInstance(r, bool)
         self.assertIs(r, True)
     finally:
         pg.set_bool(use_bool)
     r = pg.get_bool()
     self.assertIsInstance(r, bool)
     self.assertIs(r, use_bool)
Ejemplo n.º 3
0
 def testGetBool(self):
     r = pg.get_bool()
     self.assertIsInstance(r, bool)
     self.assertIs(r, True)
Ejemplo n.º 4
0
 def testGetBool(self):
     r = pg.get_bool()
     self.assertIsInstance(r, bool)
     self.assertIs(r, True)