diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-03-17 14:08:11 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-04-04 18:27:35 +0200 |
commit | c56d54501ef2b83cc9a9241a0b41739422fb7eca (patch) | |
tree | 3d4a59edef85d53f59dbea50441ded500b6a37ab /testing | |
parent | 7dea944dc009c592e987f977d6224c8f5a565015 (diff) |
[test] check path partitioning
Diffstat (limited to 'testing')
-rw-r--r-- | testing/tests/blobs/test_fs_backend.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/tests/blobs/test_fs_backend.py b/testing/tests/blobs/test_fs_backend.py index 90b38037..aaf5f4c3 100644 --- a/testing/tests/blobs/test_fs_backend.py +++ b/testing/tests/blobs/test_fs_backend.py @@ -75,3 +75,9 @@ class FilesystemBackendTestCase(unittest.TestCase): request.setResponseCode.assert_called_once_with(507) request.write.assert_called_once_with('Quota Exceeded!') request.finish.assert_called_once() + + def test_get_path_partitioning(self): + backend = _blobs.FilesystemBlobsBackend() + backend.path = '/somewhere/' + path = backend._get_path('user', 'blob_id') + assert path == '/somewhere/user/b/blo/blob_i/blob_id' |