27
30
from ubuntuone.syncdaemon.file_shelf import (
36
39
BROKEN_PICKLE = '\axb80\x02}q\x01(U\x01aU\x04testq\x02U\x01bU\x06brokenq\x03u.'
40
43
""" Test the FileShelf """
41
44
fileshelf_class = FileShelf
46
50
self.path = self.mktemp('shelf')
47
51
self.shelf = self.fileshelf_class(self.path)
54
53
def test_bad_depth(self):
55
54
""" test that the shelf reject invalid depth at creation time """
56
55
self.assertRaises(ValueError, self.fileshelf_class, self.path, depth=-1)