Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
da70b1ae
Commit
da70b1ae
authored
Aug 11, 2012
by
gcode@loowis.durge.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename test classes from *ZipFS to *ArchiveFS
parent
cdaf58cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fs/tests/test_archivefs.py
+5
-5
No files found.
fs/tests/test_archivefs.py
View file @
da70b1ae
"""
"""
fs.tests.test_
zipfs: testcases for the Zip
FS class
fs.tests.test_
archivefs: testcases for the Archive
FS class
"""
"""
...
@@ -17,7 +17,7 @@ from fs.contrib import archivefs
...
@@ -17,7 +17,7 @@ from fs.contrib import archivefs
from
six
import
PY3
,
b
from
six
import
PY3
,
b
class
TestRead
Zip
FS
(
unittest
.
TestCase
):
class
TestRead
Archive
FS
(
unittest
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
temp_filename
=
""
.
join
(
random
.
choice
(
"abcdefghijklmnopqrstuvwxyz"
)
for
_
in
range
(
6
))
+
".zip"
self
.
temp_filename
=
""
.
join
(
random
.
choice
(
"abcdefghijklmnopqrstuvwxyz"
)
for
_
in
range
(
6
))
+
".zip"
...
@@ -87,7 +87,7 @@ class TestReadZipFS(unittest.TestCase):
...
@@ -87,7 +87,7 @@ class TestReadZipFS(unittest.TestCase):
check_listing
(
'foo/bar'
,
[
'baz.txt'
])
check_listing
(
'foo/bar'
,
[
'baz.txt'
])
class
TestWrite
Zip
FS
(
unittest
.
TestCase
):
class
TestWrite
Archive
FS
(
unittest
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
temp_filename
=
""
.
join
(
random
.
choice
(
"abcdefghijklmnopqrstuvwxyz"
)
for
_
in
range
(
6
))
+
".zip"
self
.
temp_filename
=
""
.
join
(
random
.
choice
(
"abcdefghijklmnopqrstuvwxyz"
)
for
_
in
range
(
6
))
+
".zip"
...
@@ -133,7 +133,7 @@ class TestWriteZipFS(unittest.TestCase):
...
@@ -133,7 +133,7 @@ class TestWriteZipFS(unittest.TestCase):
check_contents
(
u"
\N{GREEK SMALL LETTER ALPHA}
/
\N{GREEK CAPITAL LETTER OMEGA}
.txt"
,
b
(
"this is the alpha and the omega"
))
check_contents
(
u"
\N{GREEK SMALL LETTER ALPHA}
/
\N{GREEK CAPITAL LETTER OMEGA}
.txt"
,
b
(
"this is the alpha and the omega"
))
#~ class TestAppend
ZipFS(TestWriteZip
FS):
#~ class TestAppend
ArchiveFS(TestWriteArchive
FS):
#~ def setUp(self):
#~ def setUp(self):
#~ self.temp_filename = "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(6))+".zip"
#~ self.temp_filename = "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(6))+".zip"
...
@@ -160,7 +160,7 @@ class TestWriteZipFS(unittest.TestCase):
...
@@ -160,7 +160,7 @@ class TestWriteZipFS(unittest.TestCase):
#~ zip_fs.close()
#~ zip_fs.close()
#~ class Test
Zip
FSErrors(unittest.TestCase):
#~ class Test
Archive
FSErrors(unittest.TestCase):
#~ def setUp(self):
#~ def setUp(self):
#~ self.workdir = tempfile.mkdtemp()
#~ self.workdir = tempfile.mkdtemp()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment