Permalink
Browse files

test_unlink

  • Loading branch information...
1 parent f228f06 commit cff4d917795c0d98ee3ef35580ead3d98e4c61f0 @mikejs committed Oct 2, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/basic.py
View
@@ -59,6 +59,18 @@ def test_ls(self):
self.assert_('file1' in files)
self.assert_('file2' in files)
+ def test_unlink(self):
+ path = os.path.join(self.mount, 'file')
+
+ with open(path, 'w') as w:
+ w.write("a file")
+
+ self.assert_('file' in os.listdir(self.mount))
+
+ os.unlink(path)
+
+ self.assert_('file' not in os.listdir(self.mount))
+
def suite():
suite = unittest.TestSuite()
suite.addTest(BasicGridfsFUSETestCase())

0 comments on commit cff4d91

Please sign in to comment.