def setUp(self): self.tmp_content = FilePath(self.mktemp()) self.tmp_content.makedirs() self.storage = fs_storage.FSStore(None, name='my media', content=self.tmp_content.path, urlbase='http://fsstore-host/xyz', enable_inotify=False)
def setUp(self): f = self.tmp_content = FilePath(self.mktemp()) audio = f.child('audio') audio.makedirs() video = f.child('video') video.makedirs() self.storage = fs_storage.FSStore(None, name='my media', content=[audio.path, video.path], urlbase='http://fsstore-host/xyz', enable_inotify=False)
def setUp(self): self.tmp_content = FilePath(self.mktemp()) f = self.tmp_content.child('my content') audio = f.child('audio') audio.makedirs() video = f.child('video') video.makedirs() images = f.child('images') images.makedirs() album = audio.child('album-1') album.makedirs() album.child('track-1.mp3').touch() album.child('track-2.mp3').touch() album = audio.child('album-2') album.makedirs() album.child('track-1.ogg').touch() album.child('track-2.ogg').touch() self.storage = fs_storage.FSStore(None, name='my media', content=self.tmp_content.path, urlbase='http://fsstore-host/xyz', enable_inotify=False)