From: Philipp Hagemeister Date: Thu, 4 Sep 2014 02:51:52 +0000 (+0200) Subject: [test_cache] Add a dot in the file name X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5df921b0e3cbc3200cf476d967326be838e1ee05;p=youtube-dl [test_cache] Add a dot in the file name --- 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__':