Exemplo n.º 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
Exemplo n.º 2
0
 def tearDown(self):
     getpass.getpass = self._old_getpass
     PyPIRCCommandTestCase.tearDown(self)
Exemplo n.º 3
0
 def tearDown(self):
     os.chdir(self.old_path)
     if os.path.exists(TEMP_PKG):
         shutil.rmtree(TEMP_PKG)
     PyPIRCCommandTestCase.tearDown(self)
Exemplo n.º 4
0
 def setUp(self):
     PyPIRCCommandTestCase.setUp(self)
     self.old_path = os.getcwd()
Exemplo n.º 5
0
 def tearDown(self):
     os.chdir(self.old_path)
     if os.path.exists(TEMP_PKG):
         shutil.rmtree(TEMP_PKG)
     PyPIRCCommandTestCase.tearDown(self)
Exemplo n.º 6
0
 def setUp(self):
     PyPIRCCommandTestCase.setUp(self)
     self.old_path = os.getcwd()