Esempio n. 1
0
 def setUp(self):
     try:
         self.xr = __builtin__.xrange
         delattr(__builtin__, 'xrange')
     except AttributeError:
         self.xr = None
     helpers.reload(board)
Esempio n. 2
0
 def setUp(self):
     try:
         self.xr = __builtin__.xrange
         delattr(__builtin__, 'xrange')
     except AttributeError:
         self.xr = None
     helpers.reload(board)
Esempio n. 3
0
 def setUp(self):
     self.stdout = sys.stdout
     self.output = {}
     sys.stdout = helpers.DevNull(self.output)
     sys.modules['argparse'] = None
     helpers.reload(ui)
     ui.debug = True
     def system_interrupt(*args):
         raise KeyboardInterrupt()
     os.system = system_interrupt
Esempio n. 4
0
 def setUp(self):
     sys.modules['termios'] = None
     sys.modules['msvcrt'] = helpers.FakeMsvcrt()
     helpers.reload(keypress)
Esempio n. 5
0
 def setUp(self):
     sys.modules['termios'] = None
     sys.modules['msvcrt'] = helpers.FakeMsvcrt()
     helpers.reload(keypress)
Esempio n. 6
0
 def setUp(self):
     sys.modules['collections'] = None
     sys.modules['ordereddict'] = fake_ordereddict
     helpers.reload(souputils)
Esempio n. 7
0
 def setUp(self):
     sys.modules['collections'] = None
     sys.modules['ordereddict'] = fake_ordereddict
     helpers.reload(souputils)