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