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
198512d2
Commit
198512d2
authored
Sep 08, 2008
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work in progress
parent
b6db31f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
fs/tests.py
+0
-5
No files found.
fs/tests.py
View file @
198512d2
...
@@ -265,7 +265,6 @@ class TestOSFS(unittest.TestCase):
...
@@ -265,7 +265,6 @@ class TestOSFS(unittest.TestCase):
self
.
assertEqual
(
size
,
len
(
test_str
))
self
.
assertEqual
(
size
,
len
(
test_str
))
def
test_movefile
(
self
):
def
test_movefile
(
self
):
check
=
self
.
check
check
=
self
.
check
contents
=
"If the implementation is hard to explain, it's a bad idea."
contents
=
"If the implementation is hard to explain, it's a bad idea."
def
makefile
(
path
):
def
makefile
(
path
):
...
@@ -294,7 +293,6 @@ class TestOSFS(unittest.TestCase):
...
@@ -294,7 +293,6 @@ class TestOSFS(unittest.TestCase):
self
.
assert_
(
checkcontents
(
"/c.txt"
))
self
.
assert_
(
checkcontents
(
"/c.txt"
))
def
test_movedir
(
self
):
def
test_movedir
(
self
):
check
=
self
.
check
check
=
self
.
check
contents
=
"If the implementation is hard to explain, it's a bad idea."
contents
=
"If the implementation is hard to explain, it's a bad idea."
def
makefile
(
path
):
def
makefile
(
path
):
...
@@ -328,7 +326,6 @@ class TestOSFS(unittest.TestCase):
...
@@ -328,7 +326,6 @@ class TestOSFS(unittest.TestCase):
def
test_copydir
(
self
):
def
test_copydir
(
self
):
check
=
self
.
check
check
=
self
.
check
contents
=
"If the implementation is hard to explain, it's a bad idea."
contents
=
"If the implementation is hard to explain, it's a bad idea."
def
makefile
(
path
):
def
makefile
(
path
):
...
@@ -358,13 +355,11 @@ class TestOSFS(unittest.TestCase):
...
@@ -358,13 +355,11 @@ class TestOSFS(unittest.TestCase):
def
test_readwriteappendseek
(
self
):
def
test_readwriteappendseek
(
self
):
def
checkcontents
(
path
,
check_contents
):
def
checkcontents
(
path
,
check_contents
):
f
=
self
.
fs
.
open
(
path
,
"rb"
)
f
=
self
.
fs
.
open
(
path
,
"rb"
)
read_contents
=
f
.
read
()
read_contents
=
f
.
read
()
f
.
close
()
f
.
close
()
return
read_contents
==
check_contents
return
read_contents
==
check_contents
test_strings
=
[
"Beautiful is better than ugly."
,
test_strings
=
[
"Beautiful is better than ugly."
,
"Explicit is better than implicit."
,
"Explicit is better than implicit."
,
"Simple is better than complex."
]
"Simple is better than complex."
]
...
...
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