Example #1
0
 def testDefOpt(self):
     d0 = pg.get_defopt()
     d1 = '-h pgtesthost -p 1234'
     pg.set_defopt(d1)
     self.assertEqual(pg.get_defopt(), d1)
     pg.set_defopt(d0)
     self.assertEqual(pg.get_defopt(), d0)
Example #2
0
 def testDefOpt(self):
     d0 = pg.get_defopt()
     d1 = '-h pgtesthost -p 1234'
     pg.set_defopt(d1)
     self.assertEqual(pg.get_defopt(), d1)
     pg.set_defopt(d0)
     self.assertEqual(pg.get_defopt(), d0)