(self)
| 528 | self.assertRaises(ftplib.error_proto, self.client.sendcmd, 'echo 999') |
| 529 | |
| 530 | def test_all_errors(self): |
| 531 | exceptions = (ftplib.error_reply, ftplib.error_temp, ftplib.error_perm, |
| 532 | ftplib.error_proto, ftplib.Error, OSError, |
| 533 | EOFError) |
| 534 | for x in exceptions: |
| 535 | try: |
| 536 | raise x('exception not included in all_errors set') |
| 537 | except ftplib.all_errors: |
| 538 | pass |
| 539 | |
| 540 | def test_set_pasv(self): |
| 541 | # passive mode is supposed to be enabled by default |