diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-09-04 04:51:52 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-09-04 04:51:52 +0200 |
commit | 5df921b0e3cbc3200cf476d967326be838e1ee05 (patch) | |
tree | 76df0d88400195d17639020fa3a13a482c8124b3 /test | |
parent | 35d5b67876f503de0c0e0a1448d5f21ef15a74ea (diff) |
[test_cache] Add a dot in the file name
Diffstat (limited to 'test')
-rw-r--r-- | test/test_cache.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_cache.py b/test/test_cache.py index dbefad109..a16160142 100644 --- a/test/test_cache.py +++ b/test/test_cache.py @@ -43,16 +43,16 @@ class TestCache(unittest.TestCase): }) c = Cache(ydl) obj = {'x': 1, 'y': ['รค', '\\a', True]} - self.assertEqual(c.load('test_cache', 'k'), None) - c.store('test_cache', 'k', obj) + self.assertEqual(c.load('test_cache', 'k.'), None) + c.store('test_cache', 'k.', obj) self.assertEqual(c.load('test_cache', 'k2'), None) self.assertFalse(_is_empty(self.test_dir)) - self.assertEqual(c.load('test_cache', 'k'), obj) + self.assertEqual(c.load('test_cache', 'k.'), obj) self.assertEqual(c.load('test_cache', 'y'), None) - self.assertEqual(c.load('test_cache2', 'k'), None) + self.assertEqual(c.load('test_cache2', 'k.'), None) c.remove() self.assertFalse(os.path.exists(self.test_dir)) - self.assertEqual(c.load('test_cache', 'k'), None) + self.assertEqual(c.load('test_cache', 'k.'), None) if __name__ == '__main__': |