diff options
Diffstat (limited to 'fs/tests/__init__.py')
-rw-r--r-- | fs/tests/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/tests/__init__.py b/fs/tests/__init__.py index 91e6a03..79da71a 100644 --- a/fs/tests/__init__.py +++ b/fs/tests/__init__.py @@ -840,6 +840,8 @@ class FSTestCases(object): self.assertTrue(cmp_datetimes(d1, info['accessed_time'])) self.assertTrue(cmp_datetimes(d2, info['modified_time'])) + def test_removeroot(self): + self.assertRaises(DeleteRootError, self.fs.removedir, "/") # May be disabled - see end of file class ThreadingTestCases(object): @@ -1023,7 +1025,7 @@ class ThreadingTestCases(object): self.fs.copydir("a","copy of a") def copydir_overwrite(): self._yield() - self.fs.copydir("a","copy of a",overwrite=True) + self.fs.copydir("a","copy of a",overwrite=True) # This should error out since we're not overwriting self.assertRaises(DestinationExistsError,self._runThreads,copydir,copydir) # This should run to completion and give a valid state, unless |