def test_set_hash_type(self): store = FileStore(self._dir, hash_type='md5') store.put('foo', 'bar', 10) md5 = hashlib.md5(encode('foo')).hexdigest() full_dir = os.path.join(self._dir, md5[0:2], md5[2:4]) assert os.path.exists(full_dir)