From c56d54501ef2b83cc9a9241a0b41739422fb7eca Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 17 Mar 2017 14:08:11 -0300 Subject: [test] check path partitioning --- testing/tests/blobs/test_fs_backend.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testing') 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' -- cgit v1.2.3