Commit 198512d2 by willmcgugan

Work in progress

parent b6db31f6
...@@ -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."]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment