(self)
| 2924 | self.assertEqual(rc, 1) |
| 2925 | |
| 2926 | def test_create_command(self): |
| 2927 | files = [support.findfile('tokenize_tests.txt', |
| 2928 | subdir='tokenizedata'), |
| 2929 | support.findfile('tokenize_tests-no-coding-cookie-' |
| 2930 | 'and-utf8-bom-sig-only.txt', |
| 2931 | subdir='tokenizedata')] |
| 2932 | for opt in '-c', '--create': |
| 2933 | try: |
| 2934 | out = self.tarfilecmd(opt, tmpname, *files) |
| 2935 | self.assertEqual(out, b'') |
| 2936 | with tarfile.open(tmpname) as tar: |
| 2937 | tar.getmembers() |
| 2938 | finally: |
| 2939 | os_helper.unlink(tmpname) |
| 2940 | |
| 2941 | def test_create_command_verbose(self): |
| 2942 | files = [support.findfile('tokenize_tests.txt', |
nothing calls this directly
no test coverage detected