Exemple #1
0
 def test_copy(self):
     fs = Filesystem(MockBackend())
     assert fs.copy(None, None)
Exemple #2
0
 def test_create(self):
     fs = Filesystem(MockBackend())
     assert fs.create(None)
     assert fs.create(None, is_dir=True)
Exemple #3
0
 def test_delete(self):
     fs = Filesystem(MockBackend())
     assert fs.delete(None)
Exemple #4
0
 def test_move(self):
     fs = Filesystem(MockBackend())
     assert fs.move(None, None)
Exemple #5
0
 def test_append(self):
     fs = Filesystem(MockBackend())
     assert fs.append(None, None)
Exemple #6
0
 def test_write(self):
     fs = Filesystem(MockBackend())
     assert fs.write(None, None)
     fs['test'] = 'test'
Exemple #7
0
 def test_exists(self):
     fs = Filesystem(MockBackend())
     assert fs.exists(None)
     assert None in fs
Exemple #8
0
 def test_read(self):
     fs = Filesystem(MockBackend())
     assert fs.read(None)
     assert fs[None]
Exemple #9
0
 def test_with_backend(self):
     assert Filesystem(MockBackend())