(self)
| 2906 | self.assertEqual(out, expected) |
| 2907 | |
| 2908 | def test_list_command_verbose(self): |
| 2909 | for tar_name in testtarnames: |
| 2910 | with support.captured_stdout() as t: |
| 2911 | with tarfile.open(tar_name, 'r') as tf: |
| 2912 | tf.list(verbose=True) |
| 2913 | expected = t.getvalue().encode('ascii', 'backslashreplace') |
| 2914 | for opt in '-v', '--verbose': |
| 2915 | out = self.tarfilecmd(opt, '-l', tar_name, |
| 2916 | PYTHONIOENCODING='ascii') |
| 2917 | self.assertEqual(out, expected) |
| 2918 | |
| 2919 | def test_list_command_invalid_file(self): |
| 2920 | zipname = support.findfile('zipdir.zip', subdir='archivetestdata') |
nothing calls this directly
no test coverage detected