示例#1
0
 def setUp(self):
     PyPIRCCommandTestCase.setUp(self)
     # patching the password prompt
     self._old_getpass = getpass.getpass
     def _getpass(prompt):
         return 'password'
     getpass.getpass = _getpass
示例#2
0
 def tearDown(self):
     getpass.getpass = self._old_getpass
     PyPIRCCommandTestCase.tearDown(self)
示例#3
0
 def tearDown(self):
     os.chdir(self.old_path)
     if os.path.exists(TEMP_PKG):
         shutil.rmtree(TEMP_PKG)
     PyPIRCCommandTestCase.tearDown(self)
示例#4
0
 def setUp(self):
     PyPIRCCommandTestCase.setUp(self)
     self.old_path = os.getcwd()
示例#5
0
 def tearDown(self):
     os.chdir(self.old_path)
     if os.path.exists(TEMP_PKG):
         shutil.rmtree(TEMP_PKG)
     PyPIRCCommandTestCase.tearDown(self)
示例#6
0
 def setUp(self):
     PyPIRCCommandTestCase.setUp(self)
     self.old_path = os.getcwd()