Пример #1
0
 def test_get_cache_path_create(self, mock_makedirs, mock_exists):
     p = images._get_cache_path()
     mock_exists.assert_called_with('/a/b/c/image_cache')
     mock_makedirs.assert_called_with('/a/b/c/image_cache')
     self.assertEqual('/a/b/c/image_cache', p)
Пример #2
0
 def test_get_cache_path(self, mock_exists, mock_config):
     p = images._get_cache_path()
     mock_exists.assert_called_with('/a/b/c/image_cache')
     self.assertEqual('/a/b/c/image_cache', p)