python/dist/src/Lib/test test_tarfile.py, 1.14, 1.15
Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2365/Lib/test Modified Files: test_tarfile.py Log Message: Add test case for bug #1017553 Index: test_tarfile.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_tarfile.py,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- test_tarfile.py 22 Aug 2004 21:28:33 -0000 1.14 +++ test_tarfile.py 20 Oct 2004 11:47:01 -0000 1.15 @@ -327,6 +327,14 @@ class WriteStreamTestGzip(WriteStreamTest): comp = "gz" +# Filemode test cases + +class FileModeTest(unittest.TestCase): + def test_modes(self): + self.assertEqual(tarfile.filemode(0755), '-rwxr-xr-x') + self.assertEqual(tarfile.filemode(07111), '---s--s--t') + + if bz2: # Bzip2 TestCases class ReadTestBzip2(ReadTestGzip): @@ -354,6 +362,7 @@ bz2.BZ2File(tarname("bz2"), "wb").write(file(tarname(), "rb").read()) tests = [ + FileModeTest, ReadTest, ReadStreamTest, WriteTest,
participants (1)
-
akuchling@users.sourceforge.net