예제 #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()