From 23c50bd9738aaf9e1244e3d9584855843ae165c8 Mon Sep 17 00:00:00 2001 From: Max Arnold Date: Wed, 18 Dec 2013 10:52:13 +0700 Subject: [PATCH] rename key to path in FilesPipelineTestCase --- scrapy/tests/test_pipeline_files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapy/tests/test_pipeline_files.py b/scrapy/tests/test_pipeline_files.py index 7aa04dfe6..19cd84e69 100644 --- a/scrapy/tests/test_pipeline_files.py +++ b/scrapy/tests/test_pipeline_files.py @@ -48,9 +48,9 @@ class FilesPipelineTestCase(unittest.TestCase): assert isinstance(self.pipeline.store, FSFilesStore) self.assertEqual(self.pipeline.store.basedir, self.tempdir) - key = 'some/image/key.jpg' - path = os.path.join(self.tempdir, 'some', 'image', 'key.jpg') - self.assertEqual(self.pipeline.store._get_filesystem_path(key), path) + path = 'some/image/key.jpg' + fullpath = os.path.join(self.tempdir, 'some', 'image', 'key.jpg') + self.assertEqual(self.pipeline.store._get_filesystem_path(path), fullpath) @defer.inlineCallbacks def test_file_not_expired(self):