Пример #1
0
 def setUp(self):
     """Establish a clean test environment"""
     self.stubs = stubout.StubOutForTesting()
     stubs.stub_out_filesystem_backend()
     self.orig_chunksize = ChunkedFile.CHUNKSIZE
     ChunkedFile.CHUNKSIZE = 10
     self.store = Store(FILESYSTEM_OPTIONS)
Пример #2
0
 def setUp(self):
     """Establish a clean test environment"""
     super(TestStore, self).setUp()
     self.orig_read_chunksize = Store.READ_CHUNKSIZE
     self.orig_write_chunksize = Store.WRITE_CHUNKSIZE
     Store.READ_CHUNKSIZE = Store.WRITE_CHUNKSIZE = 10
     self.store = Store()
 def setUp(self):
     """Establish a clean test environment"""
     super(TestStore, self).setUp()
     self.orig_chunksize = ChunkedFile.CHUNKSIZE
     ChunkedFile.CHUNKSIZE = 10
     self.store = Store()